nixpkgs/pkgs/applications/graphics/curtail/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

73 lines
1.3 KiB
Nix
Raw Normal View History

2022-05-26 10:56:36 +00:00
{ 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";
2022-07-13 01:44:50 +00:00
version = "1.3.1";
2022-05-26 10:56:36 +00:00
format = "other";
src = fetchFromGitHub {
owner = "Huluti";
repo = "Curtail";
2022-07-13 01:44:50 +00:00
rev = "refs/tags/${version}";
sha256 = "sha256-/xvkRXs1EVu+9RZM+TnyIGxFV2stUR9XHEmaJxsJ3V8=";
2022-05-26 10:56:36 +00:00
};
nativeBuildInputs = [
wrapGAppsHook
appstream-glib
desktop-file-utils
gettext
gtk3
meson
ninja
pkg-config
gobject-introspection
2022-05-26 10:56:36 +00:00
];
buildInputs = [
2022-05-26 10:56:36 +00:00
appstream-glib
gettext
gtk3
2022-05-26 10:56:36 +00:00
];
propagatedBuildInputs = [
python3.pkgs.pygobject3
];
2022-05-26 10:56:36 +00:00
preInstall = ''
patchShebangs ../build-aux/meson/postinstall.py
'';
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
"--prefix" "PATH" ":" "${lib.makeBinPath [ jpegoptim libwebp optipng pngquant ]}"
)
2022-05-26 10:56:36 +00:00
'';
meta = with lib; {
description = "Simple & useful image compressor";
homepage = "https://github.com/Huluti/Curtail";
license = licenses.gpl3Only;
maintainers = with maintainers; [ anselmschueler ];
};
}