2017-09-03 07:58:57 +01:00
|
|
|
{ stdenv, lib, fetchurl, gtk2, lv2, pkgconfig, python, serd, sord, sratom
|
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";
|
|
|
|
version = "0.8.4";
|
|
|
|
name = "${pname}-qt${if withQt4 then "4" else "5"}-${version}";
|
2012-07-05 22:29:45 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-02-02 05:41:23 +00:00
|
|
|
url = "http://download.drobilla.net/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "1kji3lhha26qr6xm9j8ic5c40zbrrb5qnwm2qxzmsfxgmrz29wkf";
|
2012-07-05 22:29:45 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
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
|
|
|
|
|
|
|
configurePhase = "python waf configure --prefix=$out";
|
|
|
|
|
|
|
|
buildPhase = "python waf";
|
|
|
|
|
|
|
|
installPhase = "python waf install";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://drobilla.net/software/suil;
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|