shell.nix 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. { sources ? import nix/sources.nix # Please specify inputs obtained from `sources` as separate params like below
  2. , cargo2nix ? sources.cargo2nix
  3. , nixpkgs ? sources.nixpkgs
  4. , rust-olay ? import sources.rust-overlay
  5. }:
  6. let
  7. scripts-olay = import ./nix/scripts.nix;
  8. cargo2nix-olay = import "${cargo2nix}/overlay";
  9. pkgs = import nixpkgs {
  10. overlays = [
  11. # cargo2nix-olay
  12. rust-olay
  13. scripts-olay
  14. ];
  15. };
  16. cargo2nix-drv = import cargo2nix {
  17. inherit nixpkgs;
  18. };
  19. in
  20. pkgs.mkShell {
  21. nativeBuildInputs = (
  22. with pkgs; [
  23. go
  24. gopls
  25. hidapi
  26. libudev
  27. niv
  28. nodejs
  29. openssl
  30. pkgconfig
  31. protobuf
  32. whcluster
  33. whinotify
  34. whkube
  35. whtilt
  36. whremote
  37. # (
  38. # rust-bin.stable."1.51.0".default.override {
  39. # extensions = [
  40. # "rust-src"
  41. # "rust-analysis"
  42. # ];
  43. # }
  44. # )
  45. # Provided on Fedora:
  46. kubectl
  47. minikube
  48. tilt
  49. # xargo
  50. ]
  51. );
  52. DOCKER_BUILDKIT = 1;
  53. PROTOC = "${pkgs.protobuf}/bin/protoc";
  54. EMITTER_ADDRESS = "changeme";
  55. }