mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
libfinity: replace mkFlag with lib.withFeature
This commit is contained in:
@@ -9,8 +9,6 @@ assert avahiSupport -> avahi != null;
|
||||
assert gtkWidgets -> gtk3 != null;
|
||||
|
||||
let
|
||||
mkFlag = flag: feature: (if flag then "--with-" else "--without-") + feature;
|
||||
|
||||
self = stdenv.mkDerivation rec {
|
||||
pname = "libinfinity";
|
||||
version = "0.7.2";
|
||||
@@ -29,13 +27,13 @@ let
|
||||
propagatedBuildInputs = [ gnutls ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-gtk-doc"
|
||||
"--enable-introspection"
|
||||
(mkFlag gtkWidgets "inftextgtk")
|
||||
(mkFlag gtkWidgets "infgtk")
|
||||
"--with-infinoted"
|
||||
"--with-libdaemon"
|
||||
(mkFlag avahiSupport "avahi")
|
||||
(lib.enableFeature true "gtk-doc")
|
||||
(lib.enableFeature true "introspection")
|
||||
(lib.withFeature gtkWidgets "inftextgtk")
|
||||
(lib.withFeature gtkWidgets "infgtk")
|
||||
(lib.withFeature true "infinoted")
|
||||
(lib.withFeature true "libdaemon")
|
||||
(lib.withFeature avahiSupport "avahi")
|
||||
];
|
||||
|
||||
passthru = {
|
||||
|
||||
Reference in New Issue
Block a user