Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
92 lines
1.5 KiB
Nix
92 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
wrapGAppsHook4,
|
|
appstream-glib,
|
|
desktop-file-utils,
|
|
gettext,
|
|
gtk4,
|
|
libadwaita,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
gobject-introspection,
|
|
jpegoptim,
|
|
libwebp,
|
|
optipng,
|
|
pngquant,
|
|
oxipng,
|
|
nix-update-script,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "curtail";
|
|
version = "1.13.0";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Huluti";
|
|
repo = "Curtail";
|
|
tag = version;
|
|
sha256 = "sha256-JfioWtd0jGTyaD5uELAqH6J+h04MOrfEqdR7GWgXyMw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook4
|
|
appstream-glib
|
|
desktop-file-utils
|
|
gettext
|
|
gtk4
|
|
libadwaita
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
appstream-glib
|
|
gettext
|
|
gtk4
|
|
libadwaita
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
python3.pkgs.pygobject3
|
|
];
|
|
|
|
preInstall = ''
|
|
patchShebangs ../build-aux/meson/postinstall.py
|
|
'';
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=(
|
|
"''${gappsWrapperArgs[@]}"
|
|
"--prefix" "PATH" ":" "${
|
|
lib.makeBinPath [
|
|
jpegoptim
|
|
libwebp
|
|
optipng
|
|
pngquant
|
|
oxipng
|
|
]
|
|
}"
|
|
)
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Simple & useful image compressor";
|
|
mainProgram = "curtail";
|
|
homepage = "https://github.com/Huluti/Curtail";
|
|
license = licenses.gpl3Only;
|
|
teams = [ lib.teams.gnome-circle ];
|
|
};
|
|
}
|