about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/lrdf/default.nix
blob: 51b2635b89e02022f3256b6d6a502f63649c2a45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ config, lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
, librdf_raptor2, ladspaH, openssl, zlib
, doCheck ? config.doCheckByDefault or false, ladspaPlugins
}:

stdenv.mkDerivation rec {
  pname = "lrdf";
  version = "0.6.1";

  src = fetchFromGitHub {
    owner = "swh";
    repo = "LRDF";
    rev = "v${version}";
    sha256 = "00wzkfb8y0aqd519ypz067cq099dpc89w69zw8ln39vl6f9x2pd4";
  };

  postPatch = lib.optionalString doCheck ''
    sed -i -e 's:usr/local:${ladspaPlugins}:' examples/{instances,remove}_test.c
  '';

  nativeBuildInputs = [ autoreconfHook pkg-config ];

  propagatedBuildInputs = [ librdf_raptor2 ];

  inherit doCheck;

  enableParallelBuilding = true;

  meta = {
    description = "Lightweight RDF library with special support for LADSPA plugins";
    homepage = "https://sourceforge.net/projects/lrdf/";
    license = lib.licenses.gpl2;
    maintainers = [ lib.maintainers.marcweber ];
    platforms = lib.platforms.linux;
  };
}