summary refs log tree commit diff
path: root/pkgs/build-support/release
diff options
context:
space:
mode:
authorRob Vermaas <rob.vermaas@gmail.com>2009-06-17 07:02:59 +0000
committerRob Vermaas <rob.vermaas@gmail.com>2009-06-17 07:02:59 +0000
commitcd2c0b26ade6c2154405921485042f7e3b03be09 (patch)
tree82e5ffbafae416beb1faeb46514b0bd02af938f7 /pkgs/build-support/release
parent891991a1d91e1ab6828b78f8e1ac1394d4a42cc1 (diff)
downloadnixpkgs-cd2c0b26ade6c2154405921485042f7e3b03be09.tar
nixpkgs-cd2c0b26ade6c2154405921485042f7e3b03be09.tar.gz
nixpkgs-cd2c0b26ade6c2154405921485042f7e3b03be09.tar.bz2
nixpkgs-cd2c0b26ade6c2154405921485042f7e3b03be09.tar.lz
nixpkgs-cd2c0b26ade6c2154405921485042f7e3b03be09.tar.xz
nixpkgs-cd2c0b26ade6c2154405921485042f7e3b03be09.tar.zst
nixpkgs-cd2c0b26ade6c2154405921485042f7e3b03be09.zip
moved finalPhase so it is possible to override through args
svn path=/nixpkgs/trunk/; revision=15977
Diffstat (limited to 'pkgs/build-support/release')
-rw-r--r--pkgs/build-support/release/nix-build.nix19
1 files changed, 9 insertions, 10 deletions
diff --git a/pkgs/build-support/release/nix-build.nix b/pkgs/build-support/release/nix-build.nix
index 703dc07a6e4..db005dbd052 100644
--- a/pkgs/build-support/release/nix-build.nix
+++ b/pkgs/build-support/release/nix-build.nix
@@ -24,6 +24,15 @@ stdenv.mkDerivation (
 
     # Hack - swap checkPhase and installPhase (otherwise Stratego barfs).
     phases = "unpackPhase patchPhase configurePhase buildPhase installPhase checkPhase fixupPhase distPhase ${if doCoverageAnalysis then "coverageReportPhase" else ""} finalPhase";
+
+    finalPhase =
+      ''
+        # Propagate the release name of the source tarball.  This is
+        # to get nice package names in channels.
+        if test -e $origSrc/nix-support/hydra-release-name; then
+          cp $origSrc/nix-support/hydra-release-name $out/nix-support/hydra-release-name
+        fi
+      '';
   }
 
   // args // 
@@ -77,16 +86,6 @@ stdenv.mkDerivation (
     lcovFilter = ["/nix/store/*"] ++ lcovFilter;
 
 
-    finalPhase =
-      ''
-        # Propagate the release name of the source tarball.  This is
-        # to get nice package names in channels.
-        if test -e $origSrc/nix-support/hydra-release-name; then
-          cp $origSrc/nix-support/hydra-release-name $out/nix-support/hydra-release-name
-        fi
-      '';
-    
-
     meta = (if args ? meta then args.meta else {}) // {
       description = if doCoverageAnalysis then "Coverage analysis" else "Native Nix build on ${stdenv.system}";
     };