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/development/libraries/libpng/12.nix
Normal file
32
pkgs/development/libraries/libpng/12.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, stdenv, fetchurl, zlib }:
|
||||
|
||||
assert stdenv.hostPlatform == stdenv.buildPlatform -> zlib != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libpng";
|
||||
version = "1.2.59";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/libpng/libpng-${version}.tar.xz";
|
||||
sha256 = "1izw9ybm27llk8531w6h4jp4rk2rxy2s9vil16nwik5dp0amyqxl";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" "man" ];
|
||||
|
||||
propagatedBuildInputs = [ zlib ];
|
||||
|
||||
passthru = { inherit zlib; };
|
||||
|
||||
configureFlags = [ "--enable-static" ];
|
||||
|
||||
postInstall = ''mv "$out/bin" "$dev/bin"'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "The official reference implementation for the PNG file format";
|
||||
homepage = "http://www.libpng.org/pub/png/libpng.html";
|
||||
license = licenses.libpng;
|
||||
maintainers = [ ];
|
||||
branch = "1.2";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
39
pkgs/development/libraries/libpng/default.nix
Normal file
39
pkgs/development/libraries/libpng/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchurl, zlib, apngSupport ? true }:
|
||||
|
||||
assert zlib != null;
|
||||
|
||||
let
|
||||
patchVersion = "1.6.37";
|
||||
patch_src = fetchurl {
|
||||
url = "mirror://sourceforge/libpng-apng/libpng-${patchVersion}-apng.patch.gz";
|
||||
sha256 = "1dh0250mw9b2hx7cdmnb2blk7ddl49n6vx8zz7jdmiwxy38v4fw2";
|
||||
};
|
||||
whenPatched = lib.optionalString apngSupport;
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "libpng" + whenPatched "-apng";
|
||||
version = "1.6.37";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/libpng/libpng-${version}.tar.xz";
|
||||
sha256 = "1jl8in381z0128vgxnvn33nln6hzckl7l7j9nqvkaf1m9n1p0pjh";
|
||||
};
|
||||
postPatch = whenPatched "gunzip < ${patch_src} | patch -Np1";
|
||||
|
||||
outputs = [ "out" "dev" "man" ];
|
||||
outputBin = "dev";
|
||||
|
||||
propagatedBuildInputs = [ zlib ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
passthru = { inherit zlib; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "The official reference implementation for the PNG file format" + whenPatched " with animation patch";
|
||||
homepage = "http://www.libpng.org/pub/png/libpng.html";
|
||||
license = licenses.libpng2;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.vcunat ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue