diff options
author | Nikolay Korotkiy <sikmir@gmail.com> | 2019-12-28 19:26:51 +0300 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-01-22 00:39:03 -0800 |
commit | d24a439d92cdb812f83e9f45b3e08465ce051596 (patch) | |
tree | e3d2ad08b099b077e1c42461808f3e26d1033032 | |
parent | f6d0441bf57fc270de0e178059a190be830d0c1f (diff) | |
download | nixpkgs-d24a439d92cdb812f83e9f45b3e08465ce051596.tar nixpkgs-d24a439d92cdb812f83e9f45b3e08465ce051596.tar.gz nixpkgs-d24a439d92cdb812f83e9f45b3e08465ce051596.tar.bz2 nixpkgs-d24a439d92cdb812f83e9f45b3e08465ce051596.tar.lz nixpkgs-d24a439d92cdb812f83e9f45b3e08465ce051596.tar.xz nixpkgs-d24a439d92cdb812f83e9f45b3e08465ce051596.tar.zst nixpkgs-d24a439d92cdb812f83e9f45b3e08465ce051596.zip |
imgp: init at 2.7
-rw-r--r-- | pkgs/applications/graphics/imgp/default.nix | 38 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/imgp/default.nix b/pkgs/applications/graphics/imgp/default.nix new file mode 100644 index 00000000000..80420202c05 --- /dev/null +++ b/pkgs/applications/graphics/imgp/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2bbc121b7ac..822e2ef525b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19703,6 +19703,8 @@ in imgcat = callPackage ../applications/graphics/imgcat { }; + imgp = python3Packages.callPackage ../applications/graphics/imgp { }; + # Impressive, formerly known as "KeyJNote". impressive = callPackage ../applications/office/impressive { }; |