lz4, xdelta: explicitly mark test requirements as such in code
commitfbeb8bd898c686f31e85b43a795306a2533ab8d1
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>
dateSun 19 Apr 2015, 03:29 (12 years ago)
parent80d61d9
pkgs/tools/compression/lz4/default.nix+1−2
@@ -11,8 +11,7 @@ stdenv.mkDerivation rec {
1111 owner = "Cyan4973";
1212 };
1313
14− # valgrind is required only by `make test`
15− buildInputs = [ valgrind ];
14+ buildInputs = stdenv.lib.optional doCheck valgrind;
1615
1716 enableParallelBuilding = true;
1817
pkgs/tools/compression/xdelta/default.nix+2−2
@@ -1,7 +1,7 @@
11{ stdenv, fetchFromGitHub, autoreconfHook }:
22
33let version = "3.0.9"; in
4−stdenv.mkDerivation {
4+stdenv.mkDerivation rec {
55 name = "xdelta-${version}";
66
77 src = fetchFromGitHub {
@@ -15,7 +15,7 @@ stdenv.mkDerivation {
1515
1616 postPatch = ''
1717 cd xdelta3
18−
18+ '' + stdenv.lib.optionalString doCheck ''
1919 mkdir tmp
2020 substituteInPlace testing/file.h --replace /tmp tmp
2121 substituteInPlace xdelta3-test.h --replace /tmp $PWD/tmp