1
0
Fork 0
This repository has been archived on 2025-03-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
compiler-course/shell.nix

23 lines
399 B
Nix
Raw Normal View History

2025-01-15 15:02:16 +02:00
let
nixpkgs = <nixpkgs>;
pkgs = import nixpkgs {
config = { };
overlays = [ ];
};
build-command = pkgs.writeScriptBin "build-nix-package" ''
nix-build -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'
'';
2025-01-15 15:02:16 +02:00
in
pkgs.mkShell {
packages =
(with pkgs; [
cargo
rustc
rustfmt
clippy
2025-01-16 04:06:59 +02:00
docker
2025-01-21 18:55:03 +02:00
python3
])
++ [ build-command ];
2025-01-15 15:02:16 +02:00
}