lz4, xdelta: explicitly mark test requirements as such in code

This commit is contained in:
Tobias Geerinckx-Rice 2015-04-19 03:29:12 +02:00
parent 80d61d9201
commit fbeb8bd898
2 changed files with 3 additions and 4 deletions

View File

@ -11,8 +11,7 @@ stdenv.mkDerivation rec {
owner = "Cyan4973"; owner = "Cyan4973";
}; };
# valgrind is required only by `make test` buildInputs = stdenv.lib.optional doCheck valgrind;
buildInputs = [ valgrind ];
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, autoreconfHook }: { stdenv, fetchFromGitHub, autoreconfHook }:
let version = "3.0.9"; in let version = "3.0.9"; in
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "xdelta-${version}"; name = "xdelta-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -15,7 +15,7 @@ stdenv.mkDerivation {
postPatch = '' postPatch = ''
cd xdelta3 cd xdelta3
'' + stdenv.lib.optionalString doCheck ''
mkdir tmp mkdir tmp
substituteInPlace testing/file.h --replace /tmp tmp substituteInPlace testing/file.h --replace /tmp tmp
substituteInPlace xdelta3-test.h --replace /tmp $PWD/tmp substituteInPlace xdelta3-test.h --replace /tmp $PWD/tmp