2012-07-05 21:29:45 +00:00
|
|
|
{ stdenv, fetchurl, pcre, pkgconfig, python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "serd-${version}";
|
2013-02-24 01:29:34 +00:00
|
|
|
version = "0.18.2";
|
2012-07-05 21:29:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.drobilla.net/${name}.tar.bz2";
|
2013-02-24 01:29:34 +00:00
|
|
|
sha256 = "1hgajhm4iar4n2kh71pv6yr0yhipj28kds9y5mbig8izqc188gcf";
|
2012-07-05 21:29:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pcre pkgconfig python ];
|
|
|
|
|
|
|
|
configurePhase = "python waf configure --prefix=$out";
|
|
|
|
|
|
|
|
buildPhase = "python waf";
|
|
|
|
|
|
|
|
installPhase = "python waf install";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://drobilla.net/software/serd;
|
|
|
|
description = "A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|