1{ stdenv, fetchurl, pkgconfig, python }:
2
3stdenv.mkDerivation rec {
4 name = "serd-${version}";
5 version = "0.28.0";
6
7 src = fetchurl {
8 url = "http://download.drobilla.net/${name}.tar.bz2";
9 sha256 = "1v4ai4zyj1q3255nghicns9817jkwb3bh60ssprsjmnjfj41mwhx";
10 };
11
12 nativeBuildInputs = [ pkgconfig python ];
13
14 configurePhase = "python waf configure --prefix=$out";
15
16 buildPhase = "python waf";
17
18 installPhase = "python waf install";
19
20 meta = with stdenv.lib; {
21 homepage = http://drobilla.net/software/serd;
22 description = "A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples";
23 license = licenses.mit;
24 maintainers = [ maintainers.goibhniu ];
25 platforms = platforms.linux;
26 };
27}