shell.nix 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. tilt-olay = final: prev: {
  10. tilt = prev.callPackage ./nix/tilt.nix {};
  11. };
  12. pkgs = import nixpkgs {
  13. overlays = [
  14. # cargo2nix-olay
  15. rust-olay
  16. tilt-olay
  17. scripts-olay
  18. ];
  19. };
  20. cargo2nix-drv = import cargo2nix {
  21. inherit nixpkgs;
  22. };
  23. in
  24. pkgs.mkShell {
  25. nativeBuildInputs = (
  26. with pkgs; [
  27. go
  28. gopls
  29. hidapi
  30. libudev
  31. niv
  32. nodejs-16_x
  33. openssl
  34. pkgconfig
  35. protobuf
  36. python3
  37. python3Packages.autopep8
  38. whcluster
  39. whinotify
  40. whkube
  41. whtilt
  42. whremote
  43. # (
  44. # rust-bin.stable."1.51.0".default.override {
  45. # extensions = [
  46. # "rust-src"
  47. # "rust-analysis"
  48. # ];
  49. # }
  50. # )
  51. # Provided on Fedora:
  52. kubectl
  53. minikube
  54. tilt
  55. # xargo
  56. ]
  57. );
  58. DOCKER_BUILDKIT = 1;
  59. PROTOC = "${pkgs.protobuf}/bin/protoc";
  60. EMITTER_ADDRESS = "changeme";
  61. }