Add command for building local nix package
This commit is contained in:
parent
1b9b93bd5b
commit
8f8565e07d
1 changed files with 11 additions and 6 deletions
17
shell.nix
17
shell.nix
|
@ -4,12 +4,17 @@ let
|
|||
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
|
||||
];
|
||||
packages =
|
||||
(with pkgs; [
|
||||
cargo
|
||||
rustc
|
||||
rustfmt
|
||||
clippy
|
||||
])
|
||||
++ [ build-command ];
|
||||
}
|
||||
|
|
Reference in a new issue