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

21 lines
385 B
Nix

let
nixpkgs = <nixpkgs>;
pkgs = import nixpkgs {
config = { };
overlays = [ ];
};
build-command = pkgs.writeScriptBin "build-nix-package" ''
nix-build -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'
'';
in
pkgs.mkShell {
packages =
(with pkgs; [
cargo
rustc
rustfmt
clippy
docker
])
++ [ build-command ];
}