about summary refs log tree commit diff
path: root/pkgs/by-name/gn
diff options
context:
space:
mode:
authorJan Tojnar2024-06-22 16:18:53 +0200
committerJan Tojnar2024-07-01 08:26:49 +0200
commitecb525108ea73c520b7a933e6a242164f05fe629 (patch)
treee824daf4c9af537ff48d0a2c8b4ad60898360d0b /pkgs/by-name/gn
parente3a06d65ffe2b83487f799ece8997dd5a184133a (diff)
gnome-packagekit: Move from gnome scope to top-level
Diffstat (limited to 'pkgs/by-name/gn')
-rw-r--r--pkgs/by-name/gn/gnome-packagekit/package.nix59
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/by-name/gn/gnome-packagekit/package.nix b/pkgs/by-name/gn/gnome-packagekit/package.nix
new file mode 100644
index 000000000000..699e24fba18e
--- /dev/null
+++ b/pkgs/by-name/gn/gnome-packagekit/package.nix
@@ -0,0 +1,59 @@
+{ 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";
+    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";
+  };
+}