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:
parent
80d61d9201
commit
fbeb8bd898
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue