From f7871d3433d0a614886394a7edf6b94332f6b300 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Thu, 2 Feb 2017 13:41:23 +0800 Subject: [PATCH 1/2] suil: 0.8.2 -> 0.8.4 We can now also build against qt5 but not qt4 and qt5 at the same time. --- .../libraries/audio/suil/default.nix | 23 +++++++++++++------ pkgs/top-level/all-packages.nix | 12 +++++++++- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/audio/suil/default.nix b/pkgs/development/libraries/audio/suil/default.nix index 518f89092ab..8864d710174 100644 --- a/pkgs/development/libraries/audio/suil/default.nix +++ b/pkgs/development/libraries/audio/suil/default.nix @@ -1,15 +1,24 @@ -{ stdenv, fetchurl, gtk2, lv2, pkgconfig, python, serd, sord, sratom, qt4 }: +{ stdenv, lib, fetchurl, gtk2, lv2, pkgconfig, python, serd, sord, sratom +, withQt4 ? true, qt4 ? null +, withQt5 ? false, qt5 ? null }: + +# I haven't found an XOR operator in nix... +assert withQt4 || withQt5; +assert !(withQt4 && withQt5); stdenv.mkDerivation rec { - name = "suil-${version}"; - version = "0.8.2"; + pname = "suil"; + version = "0.8.4"; + name = "${pname}-qt${if withQt4 then "4" else "5"}-${version}"; src = fetchurl { - url = "http://download.drobilla.net/${name}.tar.bz2"; - sha256 = "1s3adyiw7sa5gfvm5wasa61qa23629kprxyv6w8hbxdiwp0hhxkq"; + url = "http://download.drobilla.net/${pname}-${version}.tar.bz2"; + sha256 = "1kji3lhha26qr6xm9j8ic5c40zbrrb5qnwm2qxzmsfxgmrz29wkf"; }; - buildInputs = [ gtk2 lv2 pkgconfig python qt4 serd sord sratom ]; + buildInputs = [ gtk2 lv2 pkgconfig python serd sord sratom ] + ++ (lib.optionals withQt4 [ qt4 ]) + ++ (lib.optionals withQt5 (with qt5; [ qtbase qttools ])); configurePhase = "python waf configure --prefix=$out"; @@ -21,7 +30,7 @@ stdenv.mkDerivation rec { homepage = http://drobilla.net/software/suil; description = "A lightweight C library for loading and wrapping LV2 plugin UIs"; license = licenses.mit; - maintainers = [ maintainers.goibhniu ]; + maintainers = with maintainers; [ goibhniu ]; platforms = platforms.linux; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 28668e0fc1c..c88e1d157fc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9550,7 +9550,17 @@ with pkgs; subtitleeditor = callPackage ../applications/video/subtitleeditor { }; - suil = callPackage ../development/libraries/audio/suil { }; + suil-qt4 = callPackage ../development/libraries/audio/suil { + withQt4 = true; + withQt5 = false; + }; + + suil-qt5 = callPackage ../development/libraries/audio/suil { + withQt4 = false; + withQt5 = true; + }; + + suil = suil-qt4; sutils = callPackage ../tools/misc/sutils { }; From 991c9da1d70d43242beee0251a6fa2752d3836c2 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Sun, 5 Feb 2017 12:48:24 +0800 Subject: [PATCH 2/2] ingen: 2016-10-29 -> 2017-01-18 This is needed to compile against suil 0.8.4 --- pkgs/applications/audio/ingen/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/audio/ingen/default.nix b/pkgs/applications/audio/ingen/default.nix index 7f4bc0b3e9e..0b0df0b55e4 100644 --- a/pkgs/applications/audio/ingen/default.nix +++ b/pkgs/applications/audio/ingen/default.nix @@ -5,12 +5,12 @@ stdenv.mkDerivation rec { name = "ingen-unstable-${rev}"; - rev = "2016-10-29"; + rev = "2017-01-18"; src = fetchgit { url = "http://git.drobilla.net/cgit.cgi/ingen.git"; - rev = "fd147d0b888090bfb897505852c1f25dbdf77e18"; - sha256 = "1qmg79962my82c43vyrv5sxbqci9c7gc2s9bwaaqd0fcf08xcz1z"; + rev = "02ae3e9d8bf3f6a5e844706721aad8c0ac9f4340"; + sha256 = "15s8nrzn68hc2s6iw0zshbz3lfnsq0mr6gflq05xm911b7xbp74k"; }; buildInputs = [