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";
};
# valgrind is required only by `make test`
buildInputs = [ valgrind ];
buildInputs = stdenv.lib.optional doCheck valgrind;
enableParallelBuilding = true;

View File

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