mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
imgp: init at 2.7
This commit is contained in:
parent
f6d0441bf5
commit
d24a439d92
38
pkgs/applications/graphics/imgp/default.nix
Normal file
38
pkgs/applications/graphics/imgp/default.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{ lib, fetchFromGitHub, buildPythonApplication, pillow, imgp }:
|
||||||
|
|
||||||
|
buildPythonApplication rec {
|
||||||
|
pname = "imgp";
|
||||||
|
version = "2.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "jarun";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "13r4fn3dd0nyidfhrr7zzpls5ifbyqdwxhyvpkqr8ahchws7wfc6";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ pillow ];
|
||||||
|
|
||||||
|
installFlags = [
|
||||||
|
"DESTDIR=$(out)"
|
||||||
|
"PREFIX="
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
install -Dm555 auto-completion/bash/imgp-completion.bash $out/share/bash-completion/completions/imgp.bash
|
||||||
|
install -Dm555 auto-completion/fish/imgp.fish -t $out/share/fish/vendor_completions.d
|
||||||
|
install -Dm555 auto-completion/zsh/_imgp -t $out/share/zsh/site-functions
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
$out/bin/imgp --help
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "High-performance CLI batch image resizer & rotator";
|
||||||
|
homepage = "https://github.com/jarun/imgp";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [ sikmir ];
|
||||||
|
};
|
||||||
|
}
|
@ -19703,6 +19703,8 @@ in
|
|||||||
|
|
||||||
imgcat = callPackage ../applications/graphics/imgcat { };
|
imgcat = callPackage ../applications/graphics/imgcat { };
|
||||||
|
|
||||||
|
imgp = python3Packages.callPackage ../applications/graphics/imgp { };
|
||||||
|
|
||||||
# Impressive, formerly known as "KeyJNote".
|
# Impressive, formerly known as "KeyJNote".
|
||||||
impressive = callPackage ../applications/office/impressive { };
|
impressive = callPackage ../applications/office/impressive { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user