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
47
pkgs/development/libraries/libzip/default.nix
Normal file
47
pkgs/development/libraries/libzip/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib, stdenv
|
||||
, cmake
|
||||
, fetchurl
|
||||
, perl
|
||||
, zlib
|
||||
, groff
|
||||
, withBzip2 ? false
|
||||
, bzip2
|
||||
, withLZMA ? false
|
||||
, xz
|
||||
, withOpenssl ? false
|
||||
, openssl
|
||||
, withZstd ? false
|
||||
, zstd
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libzip";
|
||||
version = "1.8.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://libzip.org/download/${pname}-${version}.tar.gz";
|
||||
sha256 = "17l3ygrnbszm3b99dxmw94wcaqpbljzg54h4c0y8ss8aij35bvih";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" "man" ];
|
||||
|
||||
nativeBuildInputs = [ cmake perl groff ];
|
||||
propagatedBuildInputs = [ zlib ];
|
||||
buildInputs = lib.optionals withLZMA [ xz ]
|
||||
++ lib.optionals withBzip2 [ bzip2 ]
|
||||
++ lib.optionals withOpenssl [ openssl ]
|
||||
++ lib.optionals withZstd [ zstd ];
|
||||
|
||||
preCheck = ''
|
||||
# regress/runtest is a generated file
|
||||
patchShebangs regress
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://libzip.org/";
|
||||
description = "A C library for reading, creating and modifying zip archives";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.unix;
|
||||
changelog = "https://github.com/nih-at/libzip/blob/v${version}/NEWS.md";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue