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
32
pkgs/tools/graphics/pngquant/default.nix
Normal file
32
pkgs/tools/graphics/pngquant/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, stdenv, fetchFromGitHub, pkg-config, libpng, zlib, lcms2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pngquant";
|
||||
version = "2.17.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kornelski";
|
||||
repo = "pngquant";
|
||||
rev = version;
|
||||
sha256 = "sha256-D2KNn6AJ4eIHeb/2Oo1Wf0djMCXTtVGrua0D6z7+9V4=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
preConfigure = "patchShebangs .";
|
||||
|
||||
configureFlags = lib.optionals (!stdenv.hostPlatform.isx86) [ "--disable-sse" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ libpng zlib lcms2 ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://pngquant.org/";
|
||||
description = "A tool to convert 24/32-bit RGBA PNGs to 8-bit palette with alpha channel preserved";
|
||||
changelog = "https://github.com/kornelski/pngquant/raw/${version}/CHANGELOG";
|
||||
platforms = platforms.unix;
|
||||
license = with licenses; [ gpl3Plus hpnd bsd2 ];
|
||||
maintainers = [ maintainers.volth ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue