depot/third_party/nixpkgs/pkgs/development/libraries/audio/lvtk/default.nix
Default email 818c48e259 Project import generated by Copybara.
GitOrigin-RevId: 14aef06d9b3ad1d07626bdbb16083b83f92dc6c1
2021-10-04 09:37:57 -03:00

34 lines
928 B
Nix

{ lib, stdenv, fetchurl, boost, gtkmm2, lv2, pkg-config, python2, wafHook }:
stdenv.mkDerivation rec {
pname = "lvtk";
version = "1.2.0";
src = fetchurl {
url = "https://github.com/lvtk/lvtk/archive/${version}.tar.gz";
sha256 = "03nbj2cqcklqwh50zj2gwm07crh5iwqbpxbpzwbg5hvgl4k4rnjd";
};
nativeBuildInputs = [ pkg-config python2 wafHook ];
buildInputs = [ boost gtkmm2 lv2 ];
enableParallelBuilding = true;
# Fix including the boost libraries during linking
postPatch = ''
sed -i '/target[ ]*= "ttl2c"/ ilib=["boost_system"],' tools/wscript_build
'';
wafConfigureFlags = [
"--boost-includes=${boost.dev}/include"
"--boost-libs=${boost.out}/lib"
];
meta = with lib; {
description = "A set C++ wrappers around the LV2 C API";
homepage = "https://lvtk.org/";
license = licenses.gpl3;
maintainers = [ maintainers.goibhniu ];
platforms = platforms.unix;
};
}