diff --git a/maintainers/scripts/nix-call-package b/maintainers/scripts/nix-call-package new file mode 100755 index 000000000000..76f09e9ddeb8 --- /dev/null +++ b/maintainers/scripts/nix-call-package @@ -0,0 +1,5 @@ +#! /bin/sh + +echo "let pkgs = import /etc/nixos/nixpkgs$2 {}; x = pkgs.callPackage $1 { $3 }; in ${4:-x}" | +nix-instantiate --show-trace - | +xargs nix-store -r -K