diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2008-10-01 15:57:22 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2008-10-01 15:57:22 +0000 |
commit | ccf99b2ddfd7598277b015b5ff83e9a503bf996c (patch) | |
tree | 9b74dd24d0786a21add04149865c9bf44fc6ac0d /pkgs/build-support/src-only | |
parent | 4e283a4dcb8d77aadb954c6bbd1eef6e7a0a1570 (diff) | |
download | nixpkgs-ccf99b2ddfd7598277b015b5ff83e9a503bf996c.tar nixpkgs-ccf99b2ddfd7598277b015b5ff83e9a503bf996c.tar.gz nixpkgs-ccf99b2ddfd7598277b015b5ff83e9a503bf996c.tar.bz2 nixpkgs-ccf99b2ddfd7598277b015b5ff83e9a503bf996c.tar.lz nixpkgs-ccf99b2ddfd7598277b015b5ff83e9a503bf996c.tar.xz nixpkgs-ccf99b2ddfd7598277b015b5ff83e9a503bf996c.tar.zst nixpkgs-ccf99b2ddfd7598277b015b5ff83e9a503bf996c.zip |
A helper to get the source some package is built from.
svn path=/nixpkgs/trunk/; revision=12933
Diffstat (limited to 'pkgs/build-support/src-only')
-rw-r--r-- | pkgs/build-support/src-only/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/build-support/src-only/default.nix b/pkgs/build-support/src-only/default.nix new file mode 100644 index 00000000000..a93b3648090 --- /dev/null +++ b/pkgs/build-support/src-only/default.nix @@ -0,0 +1,6 @@ +{stdenv, name, src, patches ? [], buildInputs ? [], ...}: +stdenv.mkDerivation { + inherit src buildInputs patches name; + installPhase = "cp -r . $out"; + phases = ["unpackPhase" "patchPhase" "installPhase"]; +} |