summary refs log tree commit diff
path: root/pkgs/tools/compression
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-08-02 22:03:26 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-08-03 01:41:55 +0200
commit249b25698e4949d98ce0508224c72b988fe6f352 (patch)
treeb625e62f8f06529f299f121ea104fac7cfdded31 /pkgs/tools/compression
parente7e7564c62fb04cf1d006b7d67d07f53342f7953 (diff)
downloadnixlib-249b25698e4949d98ce0508224c72b988fe6f352.tar
nixlib-249b25698e4949d98ce0508224c72b988fe6f352.tar.gz
nixlib-249b25698e4949d98ce0508224c72b988fe6f352.tar.bz2
nixlib-249b25698e4949d98ce0508224c72b988fe6f352.tar.lz
nixlib-249b25698e4949d98ce0508224c72b988fe6f352.tar.xz
nixlib-249b25698e4949d98ce0508224c72b988fe6f352.tar.zst
nixlib-249b25698e4949d98ce0508224c72b988fe6f352.zip
xdelta: tidy up
Diffstat (limited to 'pkgs/tools/compression')
-rw-r--r--pkgs/tools/compression/xdelta/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/tools/compression/xdelta/default.nix b/pkgs/tools/compression/xdelta/default.nix
index bf02d8c3a0aa..407b14a60999 100644
--- a/pkgs/tools/compression/xdelta/default.nix
+++ b/pkgs/tools/compression/xdelta/default.nix
@@ -1,7 +1,7 @@
 { stdenv, fetchFromGitHub, autoreconfHook }:
 
 let version = "3.0.10"; in
-stdenv.mkDerivation rec {
+stdenv.mkDerivation {
   name = "xdelta-${version}";
   
   src = fetchFromGitHub {
@@ -15,16 +15,16 @@ stdenv.mkDerivation rec {
 
   postPatch = ''
     cd xdelta3
-  '' + stdenv.lib.optionalString doCheck ''
-    mkdir tmp
-    substituteInPlace testing/file.h --replace /tmp tmp
-    substituteInPlace xdelta3-test.h --replace /tmp $PWD/tmp
   '';
 
   enableParallelBuilding = true;
 
   doCheck = true;
   checkPhase = ''
+    mkdir $PWD/tmp
+    for i in testing/file.h xdelta3-test.h; do
+      substituteInPlace $i --replace /tmp $PWD/tmp
+    done
     ./xdelta3regtest
   '';