Skip to content

Commit

Permalink
packagekit: add 'enableNixBackend' as an option (#21157)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ikervagyok authored and Mic92 committed Dec 17, 2016
1 parent 09855fe commit fa80bf7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/tools/package-management/packagekit/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ stdenv, fetchFromGitHub, lib
, intltool, glib, pkgconfig, polkit, python, sqlite, systemd
, 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
, enableBashCompletion ? false, bash-completion ? null }:

Expand All @@ -28,7 +29,6 @@ stdenv.mkDerivation rec {

configureFlags = [
"--enable-systemd"
"--enable-nix"
"--disable-dummy"
"--disable-cron"
"--disable-introspection"
Expand All @@ -38,6 +38,7 @@ stdenv.mkDerivation rec {
"--with-dbus-sys=$(out)/etc/dbus-1/system.d"
"--with-systemdsystemunitdir=$(out)/lib/systemd/system/"
]
++ lib.optional enableNixBackend "--enable-nix"
++ lib.optional (!enableBashCompletion) "--disable-bash-completion"
++ lib.optional (!enableCommandNotFound) "--disable-command-not-found";

Expand Down

0 comments on commit fa80bf7

Please sign in to comment.