1
0
Fork 0

Add command for building local nix package

This commit is contained in:
Vili Sinervä 2025-01-15 15:47:46 +02:00
parent 1b9b93bd5b
commit 8f8565e07d
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -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 ];
}