gnome3.18: use packagekit bindings for gnome-software

- init gnome-software for gnome3 at 3.18.3
- list gnome-software as an "optional package" for gnome3
- enable packagekit service when gnome3 is enabled
This commit is contained in:
Matthew Bauer 2016-06-16 19:19:12 +00:00
parent 4e50880c82
commit 4d4746e436
3 changed files with 35 additions and 1 deletions

View File

@ -121,6 +121,7 @@ in {
services.upower.enable = config.powerManagement.enable;
services.dbus.packages = mkIf config.services.printing.enable [ pkgs.system-config-printer ];
services.colord.enable = mkDefault true;
services.packagekit.enable = mkDefault true;
hardware.bluetooth.enable = mkDefault true;
fonts.fonts = [ pkgs.dejavu_fonts pkgs.cantarell_fonts ];

View File

@ -35,7 +35,7 @@ let
gnome-clocks gnome-music gnome-tweak-tool gnome-photos
nautilus-sendto dconf-editor vinagre gnome-weather gnome-logs
gnome-maps gnome-characters gnome-calendar accerciser gnome-nettool
gnome-getting-started-docs
gnome-getting-started-docs gnome-software
];
gamesPackages = with gnome3; [ swell-foop lightsoff iagno
@ -390,6 +390,8 @@ let
gnome-video-effects = callPackage ./misc/gnome-video-effects { };
gnome-software = callPackage ./misc/gnome-software { };
};
in self; # pkgsFun

View File

@ -0,0 +1,31 @@
{ stdenv, fetchurl, pkgconfig, intltool, gnome3, wrapGAppsHook, packagekit
, appstream-glib, libsoup, polkit, attr, acl, libyaml, isocodes }:
stdenv.mkDerivation rec {
name = "gnome-software-${version}";
version = "3.18.3";
src = fetchurl {
url = "mirror://gnome/sources/gnome-software/3.18/${name}.tar.xz";
sha256 = "0ywvjmn0cwr4kv2l6ic80ac7js7hpsp3g127cj7h256iaqgsaxnc";
};
nativeBuildInputs = [ pkgconfig intltool wrapGAppsHook ];
buildInputs = [ gnome3.gtk packagekit appstream-glib libsoup
gnome3.gsettings_desktop_schemas gnome3.gnome_desktop
polkit attr acl libyaml ];
propogatedBuildInputs = [ isocodes ];
postInstall = ''
mkdir -p $out/share/xml/
ln -s ${isocodes}/share/xml/iso-codes $out/share/xml/iso-codes
'';
meta = with stdenv.lib; {
homepage = https://www.freedesktop.org/software/PackageKit/;
platforms = platforms.linux;
maintainers = gnome3.maintainers;
license = licenses.gpl2;
description = "GNOME Software lets you install and update applications and system extensions.";
};
}