1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00

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