xdelta: tidy up

This commit is contained in:
Tobias Geerinckx-Rice 2015-08-02 22:03:26 +02:00
parent e7e7564c62
commit 249b25698e

View File

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, autoreconfHook }: { stdenv, fetchFromGitHub, autoreconfHook }:
let version = "3.0.10"; in let version = "3.0.10"; in
stdenv.mkDerivation rec { stdenv.mkDerivation {
name = "xdelta-${version}"; name = "xdelta-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -15,16 +15,16 @@ stdenv.mkDerivation rec {
postPatch = '' postPatch = ''
cd xdelta3 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; enableParallelBuilding = true;
doCheck = true; doCheck = true;
checkPhase = '' checkPhase = ''
mkdir $PWD/tmp
for i in testing/file.h xdelta3-test.h; do
substituteInPlace $i --replace /tmp $PWD/tmp
done
./xdelta3regtest ./xdelta3regtest
''; '';