nixpkgs/pkgs/development/libraries/audio/lvtk/default.nix
William A. Kennington III 14e715a55d lvtk: Boost 1.59 compat
2015-09-03 10:52:30 -07:00

38 lines
1001 B
Nix

{ stdenv, fetchurl, boost, gtkmm, lv2, pkgconfig, python }:
stdenv.mkDerivation rec {
name = "lvtk-${version}";
version = "1.2.0";
src = fetchurl {
url = "https://github.com/lvtk/lvtk/archive/${version}.tar.gz";
sha256 = "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd";
};
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
'';
configurePhase = ''
python waf configure --prefix=$out \
--boost-includes="${boost.dev}/include" \
--boost-libs="${boost.lib}/lib"
'';
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;
};
}