2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 20:53:48 +00:00
nixpkgs/maintainers/scripts/nix-call-package
2016-02-20 16:12:50 +01:00

6 lines
153 B
Bash
Executable File

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