mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
curtail: init at 1.3.0
This commit is contained in:
parent
cf22e7bdd0
commit
ec4c76e0a8
66
pkgs/applications/graphics/curtail/default.nix
Normal file
66
pkgs/applications/graphics/curtail/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -25712,6 +25712,8 @@ with pkgs;
|
||||
|
||||
curseradio = callPackage ../applications/audio/curseradio { };
|
||||
|
||||
curtail = callPackage ../applications/graphics/curtail { };
|
||||
|
||||
cutecom = libsForQt5.callPackage ../tools/misc/cutecom { };
|
||||
|
||||
cvs = callPackage ../applications/version-management/cvs { };
|
||||
|
Loading…
Reference in New Issue
Block a user