forked from mirrors/nixpkgs
734cdd77b3
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/packagekit/versions
74 lines
2.6 KiB
Nix
74 lines
2.6 KiB
Nix
{ stdenv, fetchFromGitHub, lib
|
|
, intltool, glib, pkgconfig, polkit, python, sqlite
|
|
, gobjectIntrospection, vala_0_38, gtk-doc, autoreconfHook, autoconf-archive
|
|
# TODO: set enableNixBackend to true, as soon as it builds
|
|
, nix, enableNixBackend ? false, boost
|
|
, enableCommandNotFound ? false
|
|
, enableBashCompletion ? false, bash-completion ? null
|
|
, enableSystemd ? stdenv.isLinux, systemd }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "packagekit-${version}";
|
|
version = "1.1.11";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hughsie";
|
|
repo = "PackageKit";
|
|
rev = "PACKAGEKIT_${lib.replaceStrings ["."] ["_"] version}";
|
|
sha256 = "0zr4b3ax8lcd3wkgj1cybs2cqf38br2nvl91qkw9g2jmzlq6bvic";
|
|
};
|
|
|
|
buildInputs = [ glib polkit python gobjectIntrospection vala_0_38 ]
|
|
++ lib.optional enableSystemd systemd
|
|
++ lib.optional enableBashCompletion bash-completion;
|
|
propagatedBuildInputs = [ sqlite nix boost ];
|
|
nativeBuildInputs = [ intltool pkgconfig autoreconfHook autoconf-archive gtk-doc ];
|
|
|
|
preAutoreconf = ''
|
|
gtkdocize
|
|
intltoolize
|
|
'';
|
|
|
|
configureFlags = [
|
|
(if enableSystemd then "--enable-systemd" else "--disable-systemd")
|
|
"--disable-dummy"
|
|
"--disable-cron"
|
|
"--enable-introspection"
|
|
"--disable-offline-update"
|
|
"--localstatedir=/var"
|
|
"--sysconfdir=/etc"
|
|
"--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";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installFlags = [
|
|
"sysconfdir=\${out}/etc"
|
|
"localstatedir=\${TMPDIR}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "System to facilitate installing and updating packages";
|
|
longDescription = ''
|
|
PackageKit is a system designed to make installing and updating software
|
|
on your computer easier. The primary design goal is to unify all the
|
|
software graphical tools used in different distributions, and use some of
|
|
the latest technology like PolicyKit. The actual nuts-and-bolts distro
|
|
tool (dnf, apt, etc) is used by PackageKit using compiled and scripted
|
|
helpers. PackageKit isn't meant to replace these tools, instead providing
|
|
a common set of abstractions that can be used by standard GUI and text
|
|
mode package managers.
|
|
'';
|
|
homepage = http://www.packagekit.org/;
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ matthewbauer ];
|
|
};
|
|
}
|