packagekit: add 'enableNixBackend' as an option (#21157)
* packagekit: disable nix-backend Packagekit fails to build on my machines, as long as it's nix-backend is enabled * packagekit: add 'enableNixBackend' as an option
This commit is contained in:
parent
09855fe2e5
commit
fa80bf7b0d
@ -1,7 +1,8 @@
|
|||||||
{ stdenv, fetchFromGitHub, lib
|
{ stdenv, fetchFromGitHub, lib
|
||||||
, intltool, glib, pkgconfig, polkit, python, sqlite, systemd
|
, intltool, glib, pkgconfig, polkit, python, sqlite, systemd
|
||||||
, gobjectIntrospection, vala_0_23, gtk_doc, autoreconfHook, autoconf-archive
|
, gobjectIntrospection, vala_0_23, gtk_doc, autoreconfHook, autoconf-archive
|
||||||
, nix, boost
|
# TODO: set enableNixBackend to true, as soon as it builds
|
||||||
|
, nix, enableNixBackend ? false, boost
|
||||||
, enableCommandNotFound ? false
|
, enableCommandNotFound ? false
|
||||||
, enableBashCompletion ? false, bash-completion ? null }:
|
, enableBashCompletion ? false, bash-completion ? null }:
|
||||||
|
|
||||||
@ -28,7 +29,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-systemd"
|
"--enable-systemd"
|
||||||
"--enable-nix"
|
|
||||||
"--disable-dummy"
|
"--disable-dummy"
|
||||||
"--disable-cron"
|
"--disable-cron"
|
||||||
"--disable-introspection"
|
"--disable-introspection"
|
||||||
@ -38,6 +38,7 @@ stdenv.mkDerivation rec {
|
|||||||
"--with-dbus-sys=$(out)/etc/dbus-1/system.d"
|
"--with-dbus-sys=$(out)/etc/dbus-1/system.d"
|
||||||
"--with-systemdsystemunitdir=$(out)/lib/systemd/system/"
|
"--with-systemdsystemunitdir=$(out)/lib/systemd/system/"
|
||||||
]
|
]
|
||||||
|
++ lib.optional enableNixBackend "--enable-nix"
|
||||||
++ lib.optional (!enableBashCompletion) "--disable-bash-completion"
|
++ lib.optional (!enableBashCompletion) "--disable-bash-completion"
|
||||||
++ lib.optional (!enableCommandNotFound) "--disable-command-not-found";
|
++ lib.optional (!enableCommandNotFound) "--disable-command-not-found";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user