depot/third_party/nixpkgs/pkgs/desktops/gnome/misc/gnome-packagekit/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

60 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchurl
, pkg-config
, meson
, ninja
, gettext
, gnome
, packagekit
, polkit
, gtk3
, systemd
, wrapGAppsHook
, desktop-file-utils
}:
stdenv.mkDerivation rec {
pname = "gnome-packagekit";
version = "43.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-packagekit/${lib.versions.major version}/gnome-packagekit-${version}.tar.xz";
sha256 = "zaRVplKpI7LqL3Axa9D92Clve2Lu8/r9nOUMjmbF8ZU=";
};
nativeBuildInputs = [
pkg-config
meson
ninja
gettext
wrapGAppsHook
desktop-file-utils
];
buildInputs = [
gtk3
packagekit
systemd
polkit
];
postPatch = ''
patchShebangs meson_post_install.sh
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-packagekit";
attrPath = "gnome.gnome-packagekit";
};
};
meta = with lib; {
homepage = "https://www.freedesktop.org/software/PackageKit/";
platforms = platforms.linux;
maintainers = teams.gnome.members;
license = licenses.gpl2;
description = "Tools for installing software on the GNOME desktop using PackageKit";
};
}