uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
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.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jarun";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1miabaxd5pwxn0va4drzj1d4ppxvyqsrrd4xw1j6qr52yci0lms8";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue