about summary refs log tree commit diff
path: root/maintainers/scripts/nix-call-package
blob: be478fca2b75ad0db91428da48d0dfde5e7e408d (plain) (blame)
1
2
3
4
5
#! /bin/sh

echo "let pkgs = import <nixpkgs$2> {}; x = pkgs.callPackage $1 { $3 }; in ${4:-x}" |
nix-instantiate --show-trace - |
xargs nix-store -r -K