2012-07-05 21:29:45 +00:00
|
|
|
{ stdenv, fetchurl, pcre, pkgconfig, python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "serd-${version}";
|
2017-06-16 10:03:57 +00:00
|
|
|
version = "0.26.0";
|
2012-07-05 21:29:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.drobilla.net/${name}.tar.bz2";
|
2017-06-16 10:03:57 +00:00
|
|
|
sha256 = "164j43am4hka2vbzw4n52zy7rafgp6kmkgbcbvap368az644mr73";
|
2012-07-05 21:29:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pcre pkgconfig python ];
|
|
|
|
|
2016-11-01 01:00:07 +00:00
|
|
|
configurePhase = "${python.interpreter} waf configure --prefix=$out";
|
2012-07-05 21:29:45 +00:00
|
|
|
|
2016-11-01 01:00:07 +00:00
|
|
|
buildPhase = "${python.interpreter} waf";
|
2012-07-05 21:29:45 +00:00
|
|
|
|
2016-11-01 01:00:07 +00:00
|
|
|
installPhase = "${python.interpreter} waf install";
|
2012-07-05 21:29:45 +00:00
|
|
|
|
|
|
|
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 ];
|
2014-03-16 11:08:26 +00:00
|
|
|
platforms = platforms.linux;
|
2012-07-05 21:29:45 +00:00
|
|
|
};
|
|
|
|
}
|