shell.nix 564 B

1234567891011121314151617181920212223242526
  1. let
  2. sources = import ./nix/sources.nix;
  3. pkgs = import sources.nixpkgs {};
  4. in
  5. pkgs.mkShell rec {
  6. packages = with pkgs; [
  7. # general
  8. rustup
  9. nixpkgs-fmt
  10. niv
  11. # integration test
  12. grub2
  13. qemu
  14. xorriso
  15. (pkgs.writeShellScriptBin "run-integrationtest" ''
  16. ./integration-test/run.sh
  17. '')
  18. ];
  19. # To invoke "nix-shell" in the CI-runner, we need a global Nix channel.
  20. # For better reproducibility inside the Nix shell, we override this channel
  21. # with the pinned nixpkgs version.
  22. NIX_PATH = "nixpkgs=${sources.nixpkgs}";
  23. }