Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f6d0441bf57f
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d24a439d92cd
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 22, 2020

  1. imgp: init at 2.7

    sikmir authored and Jon committed Jan 22, 2020
    Copy the full SHA
    d24a439 View commit details
Showing with 40 additions and 0 deletions.
  1. +38 −0 pkgs/applications/graphics/imgp/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
38 changes: 38 additions & 0 deletions pkgs/applications/graphics/imgp/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -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 { };