nixpkgs/pkgs/development/libraries/librdf/default.nix

35 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, autoreconfHook
, librdf_raptor2, ladspaH, openssl, zlib
2018-07-18 00:11:12 +01:00
, doCheck ? stdenv.config.doCheckByDefault or false, ladspaPlugins
2013-03-02 14:45:13 +00:00
}:
2013-03-02 14:45:13 +00:00
stdenv.mkDerivation rec {
version = "0.5.0";
name = "liblrdf-${version}";
src = fetchurl {
2013-03-02 14:45:13 +00:00
url = "http://github.com/swh/LRDF/archive/${version}.tar.gz";
sha256 = "18p2flb2sv2hq6w2qkd29z9c7knnwqr3f12i2srshlzx6vwkm05s";
};
2018-07-18 00:11:12 +01:00
postPatch = stdenv.lib.optionalString doCheck ''
sed -i -e 's:usr/local:${ladspaPlugins}:' examples/{instances,remove}_test.c
'';
2018-07-18 00:11:12 +01:00
preAutoreconf = "rm m4/*";
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ ladspaH openssl zlib ];
2013-03-02 14:45:13 +00:00
propagatedBuildInputs = [ librdf_raptor2 ];
2018-07-18 00:11:12 +01:00
inherit doCheck;
2013-03-02 14:45:13 +00:00
meta = {
description = "Lightweight RDF library with special support for LADSPA plugins";
homepage = https://sourceforge.net/projects/lrdf/;
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.marcweber ];
platforms = stdenv.lib.platforms.linux;
};
}