mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:44:50 +00:00
40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
{ stdenv, fetchurl, boost, gtkmm2, 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 gtkmm2 lv2 ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# 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.out}/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;
|
|
};
|
|
}
|