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
101
pkgs/tools/networking/wget2/default.nix
Normal file
101
pkgs/tools/networking/wget2/default.nix
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitLab
|
||||
# build support
|
||||
, autoreconfHook
|
||||
, flex
|
||||
, gnulib
|
||||
, pkg-config
|
||||
, texinfo
|
||||
# libraries
|
||||
, brotli
|
||||
, bzip2
|
||||
, gpgme
|
||||
, libhsts
|
||||
, libidn2
|
||||
, libpsl
|
||||
, lzip
|
||||
, nghttp2
|
||||
, openssl
|
||||
, pcre2
|
||||
, sslSupport ? true
|
||||
, xz
|
||||
, zlib
|
||||
, zstd
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wget2";
|
||||
version = "2.0.1";
|
||||
|
||||
outputs = [ "out" "lib" "dev" ];
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "gnuwget";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-9IOM8IA8Kezk3SP3YVenxQkm8UMZgD8/ztWoDNqM0vc=";
|
||||
};
|
||||
|
||||
# wget2_noinstall contains forbidden reference to /build/
|
||||
postPatch = ''
|
||||
substituteInPlace src/Makefile.am \
|
||||
--replace "bin_PROGRAMS = wget2 wget2_noinstall" "bin_PROGRAMS = wget2"
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
flex
|
||||
lzip
|
||||
pkg-config
|
||||
texinfo
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
brotli
|
||||
bzip2
|
||||
gpgme
|
||||
libhsts
|
||||
libidn2
|
||||
libpsl
|
||||
nghttp2
|
||||
pcre2
|
||||
xz
|
||||
zlib
|
||||
zstd
|
||||
] ++ lib.optional sslSupport openssl;
|
||||
|
||||
# TODO: include translation files
|
||||
autoreconfPhase = ''
|
||||
# copy gnulib into build dir and make writable.
|
||||
# Otherwise ./bootstrap copies the non-writable files from nix store and fails to modify them
|
||||
rmdir gnulib
|
||||
cp -r ${gnulib} gnulib
|
||||
chmod -R u+w gnulib/{build-aux,lib}
|
||||
|
||||
./bootstrap --no-git --gnulib-srcdir=gnulib --skip-po
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
(lib.enableFeature false "shared")
|
||||
# TODO: https://gitlab.com/gnuwget/wget2/-/issues/537
|
||||
(lib.withFeatureAs sslSupport "ssl" "openssl")
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "successor of GNU Wget, a file and recursive website downloader.";
|
||||
longDescription = ''
|
||||
Designed and written from scratch it wraps around libwget, that provides the basic
|
||||
functions needed by a web client.
|
||||
Wget2 works multi-threaded and uses many features to allow fast operation.
|
||||
In many cases Wget2 downloads much faster than Wget1.x due to HTTP2, HTTP compression,
|
||||
parallel connections and use of If-Modified-Since HTTP header.
|
||||
'';
|
||||
homepage = "https://gitlab.com/gnuwget/wget2";
|
||||
# wget2 GPLv3+; libwget LGPLv3+
|
||||
license = with licenses; [ gpl3Plus lgpl3Plus ];
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue