summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-05-30 23:43:30 +0200
committerGitHub <noreply@github.com>2022-05-30 23:43:30 +0200
commit38083555c3eaa6019dbc15448ce0ef868e282976 (patch)
treeff04e6f249bb49fd4f1502916d35873707c0805f /pkgs/applications
parent2b4107707207ee1b0c7a2f5aaf49afb9463b248c (diff)
parentec4c76e0a8c66fbea095589f91640553c07eb86f (diff)
downloadnixpkgs-38083555c3eaa6019dbc15448ce0ef868e282976.tar
nixpkgs-38083555c3eaa6019dbc15448ce0ef868e282976.tar.gz
nixpkgs-38083555c3eaa6019dbc15448ce0ef868e282976.tar.bz2
nixpkgs-38083555c3eaa6019dbc15448ce0ef868e282976.tar.lz
nixpkgs-38083555c3eaa6019dbc15448ce0ef868e282976.tar.xz
nixpkgs-38083555c3eaa6019dbc15448ce0ef868e282976.tar.zst
nixpkgs-38083555c3eaa6019dbc15448ce0ef868e282976.zip
Merge pull request #174712 from schuelermine/add/curtail
curtail: init at 1.3.0
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/graphics/curtail/default.nix66
1 files changed, 66 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/curtail/default.nix b/pkgs/applications/graphics/curtail/default.nix
new file mode 100644
index 00000000000..925b1112b30
--- /dev/null
+++ b/pkgs/applications/graphics/curtail/default.nix
@@ -0,0 +1,66 @@
+{ lib
+, python3
+, fetchFromGitHub
+, wrapGAppsHook
+, appstream-glib
+, desktop-file-utils
+, gettext
+, gtk3
+, meson
+, ninja
+, pkg-config
+, gobject-introspection
+, jpegoptim
+, libwebp
+, optipng
+, pngquant
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "curtail";
+  version = "1.3.0";
+  format = "other";
+
+  src = fetchFromGitHub {
+    owner = "Huluti";
+    repo = "Curtail";
+    rev = version;
+    sha256 = "sha256-tNk+KI+DEMR63zfcBpfPTxAFKzvGWvpa9erK9SAAtPc=";
+  };
+
+  nativeBuildInputs = [
+    wrapGAppsHook
+    appstream-glib
+    desktop-file-utils
+    gettext
+    gtk3
+    meson
+    ninja
+    pkg-config
+  ];
+
+  propagatedBuildInputs = [
+    appstream-glib
+    python3.pkgs.pygobject3
+    gobject-introspection
+    gettext
+  ];
+
+  # Currently still required for the gobject-introspection setup hook
+  strictDeps = false;
+
+  preInstall = ''
+    patchShebangs ../build-aux/meson/postinstall.py
+  '';
+
+  postInstall = ''
+    wrapProgram $out/bin/curtail --prefix PATH : ${lib.makeBinPath [ jpegoptim libwebp optipng pngquant ]}
+  '';
+
+  meta = with lib; {
+    description = "Simple & useful image compressor";
+    homepage = "https://github.com/Huluti/Curtail";
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ anselmschueler ];
+  };
+}