diff --git a/shell.nix b/shell.nix index 76e9b9f..7a32e7a 100644 --- a/shell.nix +++ b/shell.nix @@ -4,12 +4,17 @@ let config = { }; overlays = [ ]; }; + build-command = pkgs.writeScriptBin "build-nix-package" '' + nix-build -E 'with import {}; callPackage ./default.nix {}' + ''; in pkgs.mkShell { - packages = with pkgs; [ - cargo - rustc - rustfmt - clippy - ]; + packages = + (with pkgs; [ + cargo + rustc + rustfmt + clippy + ]) + ++ [ build-command ]; }