mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
Adding a script to use callPackage on a package not mentioned in the all-packages.nix
svn path=/nixpkgs/trunk/; revision=25138
This commit is contained in:
parent
77eb09e9cb
commit
ae0da179c7
1 changed files with 5 additions and 0 deletions
5
maintainers/scripts/nix-call-package
Executable file
5
maintainers/scripts/nix-call-package
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue