Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, boost, gtkmm2, lv2, pkg-config, python3, wafHook }:
2
3stdenv.mkDerivation rec {
4 pname = "lvtk";
5 version = "1.2.0";
6
7 src = fetchFromGitHub {
8 owner = "lvtk";
9 repo = "lvtk";
10 rev = version;
11 sha256 = "sha256-6IoyhBig3Nvc4Y8F0w8b1up6sn8O2RmoUVaBQ//+Aaw=";
12 };
13
14 nativeBuildInputs = [ pkg-config python3 wafHook ];
15 buildInputs = [ boost gtkmm2 lv2 ];
16
17 enableParallelBuilding = true;
18
19 postPatch = ''
20 # Fix including the boost libraries during linking
21 sed -i '/target[ ]*= "ttl2c"/ ilib=["boost_system"],' tools/wscript_build
22
23 # don't use bundled waf
24 rm waf
25
26 # remove (useless) python2 based print
27 sed -e '/print/d' -i wscript
28 '';
29
30 wafConfigureFlags = [
31 "--boost-includes=${boost.dev}/include"
32 "--boost-libs=${boost.out}/lib"
33 ];
34
35 meta = with lib; {
36 description = "A set C++ wrappers around the LV2 C API";
37 homepage = "https://lvtk.org/";
38 license = licenses.gpl3;
39 maintainers = [ maintainers.goibhniu ];
40 platforms = platforms.unix;
41 };
42}