nixpkgs-suyu/maintainers/scripts/nix-call-package
2010-12-15 07:21:21 +00:00

5 lines
162 B
Bash
Executable file

#! /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