A helper to get the source some package is built from.
svn path=/nixpkgs/trunk/; revision=12933
This commit is contained in:
parent
4e283a4dcb
commit
ccf99b2ddf
2 changed files with 8 additions and 0 deletions
6
pkgs/build-support/src-only/default.nix
Normal file
6
pkgs/build-support/src-only/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{stdenv, name, src, patches ? [], buildInputs ? [], ...}:
|
||||
stdenv.mkDerivation {
|
||||
inherit src buildInputs patches name;
|
||||
installPhase = "cp -r . $out";
|
||||
phases = ["unpackPhase" "patchPhase" "installPhase"];
|
||||
}
|
|
@ -446,6 +446,8 @@ let
|
|||
linkFarm = name: entries: runCommand name {} ("mkdir -p $out; cd $out; \n" +
|
||||
(lib.concatMapStrings (x: "ln -s '${x.path}' '${x.name}';\n") entries));
|
||||
|
||||
srcOnly = args: (import ../build-support/src-only) ({inherit stdenv; } // args);
|
||||
|
||||
substituteAll = import ../build-support/substitute/substitute-all.nix {
|
||||
inherit stdenv;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue