about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/sord/default.nix
blob: dee53bd3b2a7c19e83b58b7fe89a3d2eb5989f58 (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
{ lib, stdenv, fetchFromGitHub, pkg-config, python3, serd, pcre, wafHook }:

stdenv.mkDerivation rec {
  pname = "sord";
  version = "unstable-2021-01-12";

  # Commit picked in mitigation of #109729
  src = fetchFromGitHub {
    owner = "drobilla";
    repo = pname;
    rev = "d2efdb2d026216449599350b55c2c85c0d3efb89";
    sha256 = "hHTwK+K6cj9MGO77a1IXiUZtEbXZ08cLGkYZ5eMOIVA=";
    fetchSubmodules = true;
  };

  preConfigure = ''
    export PKGCONFIG="$PKG_CONFIG"
  '';

  nativeBuildInputs = [ pkg-config python3 wafHook ];
  buildInputs = [ pcre ];
  propagatedBuildInputs = [ serd ];
  dontAddWafCrossFlags = true;

  meta = with lib; {
    homepage = "http://drobilla.net/software/sord";
    description = "A lightweight C library for storing RDF data in memory";
    license = licenses.mit;
    maintainers = [ maintainers.goibhniu ];
    platforms = platforms.unix;
  };
}