nixpkgs/pkgs/by-name/gn/gnome-packagekit/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

60 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchurl
, pkg-config
, meson
, ninja
, gettext
, gnome
, packagekit
, polkit
, gtk3
, systemd
, wrapGAppsHook3
, 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";
hash = "sha256-zaRVplKpI7LqL3Axa9D92Clve2Lu8/r9nOUMjmbF8ZU=";
};
nativeBuildInputs = [
pkg-config
meson
ninja
gettext
wrapGAppsHook3
desktop-file-utils
];
buildInputs = [
gtk3
packagekit
systemd
polkit
];
postPatch = ''
patchShebangs meson_post_install.sh
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "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";
};
}