mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-05-05 11:27:01 +00:00
lz4, xdelta: explicitly mark test requirements as such in code
This commit is contained in:
parent
80d61d9201
commit
fbeb8bd898
2 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue