2014-03-09 22:12:17 +01:00
|
|
|
{ stdenv, fetchurl, boost, gtkmm, lv2, pkgconfig, python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lvtk-${version}";
|
2014-04-26 01:21:08 +02:00
|
|
|
version = "1.2.0";
|
2014-03-09 22:12:17 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-04-26 01:21:08 +02:00
|
|
|
url = "https://github.com/lvtk/lvtk/archive/${version}.tar.gz";
|
|
|
|
sha256 = "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd";
|
2014-03-09 22:12:17 +01:00
|
|
|
};
|
|
|
|
|
2015-09-03 19:52:30 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig python ];
|
|
|
|
buildInputs = [ boost gtkmm lv2 ];
|
|
|
|
|
|
|
|
# Fix including the boost libraries during linking
|
|
|
|
postPatch = ''
|
|
|
|
sed -i '/target[ ]*= "ttl2c"/ ilib=["boost_system"],' tools/wscript_build
|
|
|
|
'';
|
2014-03-09 22:12:17 +01:00
|
|
|
|
|
|
|
configurePhase = ''
|
2015-09-03 19:52:30 +02:00
|
|
|
python waf configure --prefix=$out \
|
|
|
|
--boost-includes="${boost.dev}/include" \
|
2016-04-27 23:41:28 +02:00
|
|
|
--boost-libs="${boost.out}/lib"
|
2014-03-09 22:12:17 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = "python waf";
|
|
|
|
|
|
|
|
installPhase = "python waf install";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A set C++ wrappers around the LV2 C API";
|
|
|
|
homepage = http://lvtoolkit.org;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|