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 = { }; 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 =
cargo (with pkgs; [
rustc cargo
rustfmt rustc
clippy rustfmt
]; clippy
])
++ [ build-command ];
} }