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
|
@ -4,12 +4,17 @@ let
|
||||||
config = { };
|
config = { };
|
||||||
overlays = [ ];
|
overlays = [ ];
|
||||||
};
|
};
|
||||||
|
build-command = pkgs.writeScriptBin "build-nix-package" ''
|
||||||
|
nix-build -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages =
|
||||||
|
(with pkgs; [
|
||||||
cargo
|
cargo
|
||||||
rustc
|
rustc
|
||||||
rustfmt
|
rustfmt
|
||||||
clippy
|
clippy
|
||||||
];
|
])
|
||||||
|
++ [ build-command ];
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue