2021-12-27 00:03:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, boost, gtkmm2, lv2, pkg-config, python2, wafHook }:
|
2014-03-09 21:12:17 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "lvtk";
|
2014-04-26 00:21:08 +01:00
|
|
|
version = "1.2.0";
|
2014-03-09 21:12:17 +00:00
|
|
|
|
2021-12-27 00:03:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lvtk";
|
|
|
|
repo = "lvtk";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-6IoyhBig3Nvc4Y8F0w8b1up6sn8O2RmoUVaBQ//+Aaw=";
|
2014-03-09 21:12:17 +00:00
|
|
|
};
|
|
|
|
|
2021-07-27 16:00:43 +01:00
|
|
|
nativeBuildInputs = [ pkg-config python2 wafHook ];
|
2016-09-11 22:24:51 +01:00
|
|
|
buildInputs = [ boost gtkmm2 lv2 ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2015-09-03 18:52:30 +01:00
|
|
|
|
|
|
|
# Fix including the boost libraries during linking
|
|
|
|
postPatch = ''
|
|
|
|
sed -i '/target[ ]*= "ttl2c"/ ilib=["boost_system"],' tools/wscript_build
|
|
|
|
'';
|
2014-03-09 21:12:17 +00:00
|
|
|
|
2019-04-10 04:44:37 +01:00
|
|
|
wafConfigureFlags = [
|
2018-11-11 21:20:41 +00:00
|
|
|
"--boost-includes=${boost.dev}/include"
|
|
|
|
"--boost-libs=${boost.out}/lib"
|
|
|
|
];
|
2014-03-09 21:12:17 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-03-09 21:12:17 +00:00
|
|
|
description = "A set C++ wrappers around the LV2 C API";
|
2020-11-13 08:52:28 +00:00
|
|
|
homepage = "https://lvtk.org/";
|
2014-03-09 21:12:17 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2021-10-01 20:39:40 +01:00
|
|
|
platforms = platforms.unix;
|
2014-03-09 21:12:17 +00:00
|
|
|
};
|
|
|
|
}
|