Revert "Refactor mkFlag out of old packages"

This reverts commit 3117e0c897.

Conflicts:
	pkgs/development/libraries/wayland/default.nix
	pkgs/servers/samba/4.x.nix
This commit is contained in:
Eelco Dolstra
2015-06-04 14:54:50 +02:00
parent 17b6a597fb
commit 5d8fe045b6
11 changed files with 202 additions and 170 deletions
@@ -9,6 +9,10 @@ assert documentationSupport -> doxygen != null && graphviz != null;
assert eventGUISupport -> cairo != null && glib != null && gtk3 != null;
assert testsSupport -> check != null && valgrind != null;
let
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}";
in
with stdenv.lib;
stdenv.mkDerivation rec {
name = "libinput-0.15.0";
@@ -19,9 +23,9 @@ stdenv.mkDerivation rec {
};
configureFlags = [
(mkEnable documentationSupport "documentation" null)
(mkEnable eventGUISupport "event-gui" null)
(mkEnable testsSupport "tests" null)
(mkFlag documentationSupport "documentation")
(mkFlag eventGUISupport "event-gui")
(mkFlag testsSupport "tests")
];
nativeBuildInputs = [ pkgconfig ];