about summary refs log tree commit diff
path: root/pkgs/by-name/me
diff options
context:
space:
mode:
authorlelgenio <lelgenio@disroot.org>2023-10-30 22:42:55 -0300
committerlelgenio <lelgenio@disroot.org>2024-02-13 00:31:54 -0300
commit0fb4434d0e90d6466866864149895b73b751fc97 (patch)
treeded66a8404aac0bf5bfab1506b437be83d5a7ff2 /pkgs/by-name/me
parent23a4ccbd0691d5d4ec0b776a141f43f731db2716 (diff)
downloadnixlib-0fb4434d0e90d6466866864149895b73b751fc97.tar
nixlib-0fb4434d0e90d6466866864149895b73b751fc97.tar.gz
nixlib-0fb4434d0e90d6466866864149895b73b751fc97.tar.bz2
nixlib-0fb4434d0e90d6466866864149895b73b751fc97.tar.lz
nixlib-0fb4434d0e90d6466866864149895b73b751fc97.tar.xz
nixlib-0fb4434d0e90d6466866864149895b73b751fc97.tar.zst
nixlib-0fb4434d0e90d6466866864149895b73b751fc97.zip
menulibre: init at 2.2.3
Diffstat (limited to 'pkgs/by-name/me')
-rw-r--r--pkgs/by-name/me/menulibre/package.nix61
1 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/by-name/me/menulibre/package.nix b/pkgs/by-name/me/menulibre/package.nix
new file mode 100644
index 000000000000..5abe3a2bb47a
--- /dev/null
+++ b/pkgs/by-name/me/menulibre/package.nix
@@ -0,0 +1,61 @@
+{ lib
+, fetchFromGitHub
+, python3Packages
+, gnome-menus
+, gtk3
+, intltool
+, gobject-introspection
+, wrapGAppsHook
+, testers
+, menulibre
+}:
+
+python3Packages.buildPythonApplication rec {
+  name = "menulibre";
+  version = "2.2.3";
+
+  src = fetchFromGitHub {
+    owner = "bluesabre";
+    repo = "menulibre";
+    rev = "menulibre-${version}";
+    hash = "sha256-E0ukq3q4YaakOI2mDs3dh0ncZX/dqspCA+97r3JwWyA=";
+  };
+
+  propagatedBuildInputs = with python3Packages; [
+    pygobject3
+    gnome-menus
+    psutil
+    distutils-extra
+  ];
+
+  nativeBuildInputs = [
+    gtk3
+    intltool
+    gobject-introspection
+    wrapGAppsHook
+  ];
+
+  postPatch = ''
+    substituteInPlace setup.py \
+      --replace-fail 'data_dir =' "data_dir = '$out/share/menulibre' #" \
+      --replace-fail 'update_desktop_file(desktop_file, script_path)' ""
+  '';
+
+  preBuild = ''
+    export HOME=$TMPDIR
+  '';
+
+  passthru.tests.version = testers.testVersion {
+    package = menulibre;
+    command = "HOME=$TMPDIR menulibre --version | cut -d' ' -f2";
+  };
+
+  meta = with lib; {
+    description = "An advanced menu editor with an easy-to-use interface";
+    homepage = "https://bluesabre.org/projects/menulibre";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ lelgenio ];
+    mainProgram = "menulibre";
+    platforms = platforms.linux;
+  };
+}