2021-01-19 06:50:56 +00:00
|
|
|
{ stdenv, lib, fetchurl, gtk2, lv2, pkg-config, python, serd, sord, sratom
|
2018-11-11 21:20:41 +00:00
|
|
|
, wafHook
|
2017-02-02 05:41:23 +00:00
|
|
|
, withQt4 ? true, qt4 ? null
|
|
|
|
, withQt5 ? false, qt5 ? null }:
|
|
|
|
|
|
|
|
# I haven't found an XOR operator in nix...
|
|
|
|
assert withQt4 || withQt5;
|
|
|
|
assert !(withQt4 && withQt5);
|
2012-07-05 22:29:45 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-02 05:41:23 +00:00
|
|
|
pname = "suil";
|
2019-07-19 16:56:52 +01:00
|
|
|
version = "0.10.6";
|
2017-02-02 05:41:23 +00:00
|
|
|
name = "${pname}-qt${if withQt4 then "4" else "5"}-${version}";
|
2012-07-05 22:29:45 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://download.drobilla.net/${pname}-${version}.tar.bz2";
|
2019-07-19 16:56:52 +01:00
|
|
|
sha256 = "0z4v01pjw4wh65x38w6icn28wdwxz13ayl8hvn4p1g9kmamp1z06";
|
2012-07-05 22:29:45 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wafHook ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ gtk2 lv2 python serd sord sratom ]
|
2017-02-02 05:41:23 +00:00
|
|
|
++ (lib.optionals withQt4 [ qt4 ])
|
|
|
|
++ (lib.optionals withQt5 (with qt5; [ qtbase qttools ]));
|
2012-07-05 22:29:45 +01:00
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://drobilla.net/software/suil";
|
2012-07-05 22:29:45 +01:00
|
|
|
description = "A lightweight C library for loading and wrapping LV2 plugin UIs";
|
|
|
|
license = licenses.mit;
|
2017-02-02 05:41:23 +00:00
|
|
|
maintainers = with maintainers; [ goibhniu ];
|
2014-03-16 11:08:26 +00:00
|
|
|
platforms = platforms.linux;
|
2012-07-05 22:29:45 +01:00
|
|
|
};
|
|
|
|
}
|