diff options
author | Jan Malakhovski <oxij@oxij.org> | 2018-07-17 23:11:12 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2018-07-17 23:17:36 +0000 |
commit | 5a47803815892122e18cdb616aeaaae9a520334e (patch) | |
tree | b55bdf91a4acf0994661046d1ad5be8d26bcbb55 /pkgs/development/libraries/librdf | |
parent | b8d0cd2e481f50856ceca91e26b8672e747bb749 (diff) | |
download | nixpkgs-5a47803815892122e18cdb616aeaaae9a520334e.tar nixpkgs-5a47803815892122e18cdb616aeaaae9a520334e.tar.gz nixpkgs-5a47803815892122e18cdb616aeaaae9a520334e.tar.bz2 nixpkgs-5a47803815892122e18cdb616aeaaae9a520334e.tar.lz nixpkgs-5a47803815892122e18cdb616aeaaae9a520334e.tar.xz nixpkgs-5a47803815892122e18cdb616aeaaae9a520334e.tar.zst nixpkgs-5a47803815892122e18cdb616aeaaae9a520334e.zip |
librdf: fix tests
Diffstat (limited to 'pkgs/development/libraries/librdf')
-rw-r--r-- | pkgs/development/libraries/librdf/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/libraries/librdf/default.nix b/pkgs/development/libraries/librdf/default.nix index 8f8a54337f2..41047796662 100644 --- a/pkgs/development/libraries/librdf/default.nix +++ b/pkgs/development/libraries/librdf/default.nix @@ -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/; |