depot/third_party/nixpkgs/maintainers/scripts/nix-call-package

6 lines
153 B
Text
Raw Normal View History

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