Merge pull request #43700 from oxij/tree/more-test-fixes

treewide: more fixes to tests
This commit is contained in:
Matthew Bauer
2018-07-23 11:05:09 -04:00
committed by GitHub
5 changed files with 21 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
{ stdenv, fetchurl, pkgconfig, autoreconfHook
, librdf_raptor2, ladspaH, openssl, zlib
, doCheck ? stdenv.config.doCheckByDefault or false, ladspaPlugins
}:
stdenv.mkDerivation rec {
@@ -11,14 +12,18 @@ stdenv.mkDerivation rec {
sha256 = "18p2flb2sv2hq6w2qkd29z9c7knnwqr3f12i2srshlzx6vwkm05s";
};
preAutoreconf = "rm m4/*";
postPatch = "sed -i -e 's:usr/local:usr:' examples/{instances,remove}_test.c";
postPatch = stdenv.lib.optionalString doCheck ''
sed -i -e 's:usr/local:${ladspaPlugins}:' examples/{instances,remove}_test.c
'';
preAutoreconf = "rm m4/*";
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ ladspaH openssl zlib ];
propagatedBuildInputs = [ librdf_raptor2 ];
inherit doCheck;
meta = {
description = "Lightweight RDF library with special support for LADSPA plugins";
homepage = https://sourceforge.net/projects/lrdf/;