1{ stdenv, fetchurl, boost, gtkmm2, lv2, pkgconfig, python }:
2
3stdenv.mkDerivation rec {
4 name = "lvtk-${version}";
5 version = "1.2.0";
6
7 src = fetchurl {
8 url = "https://github.com/lvtk/lvtk/archive/${version}.tar.gz";
9 sha256 = "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd";
10 };
11
12 nativeBuildInputs = [ pkgconfig python ];
13 buildInputs = [ boost gtkmm2 lv2 ];
14
15 enableParallelBuilding = true;
16
17 # Fix including the boost libraries during linking
18 postPatch = ''
19 sed -i '/target[ ]*= "ttl2c"/ ilib=["boost_system"],' tools/wscript_build
20 '';
21
22 configurePhase = ''
23 python waf configure --prefix=$out \
24 --boost-includes="${boost.dev}/include" \
25 --boost-libs="${boost.out}/lib"
26 '';
27
28 buildPhase = "python waf";
29
30 installPhase = "python waf install";
31
32 meta = with stdenv.lib; {
33 description = "A set C++ wrappers around the LV2 C API";
34 homepage = http://lvtoolkit.org;
35 license = licenses.gpl3;
36 maintainers = [ maintainers.goibhniu ];
37 platforms = platforms.linux;
38 };
39}