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
35
pkgs/tools/networking/netrw/default.nix
Normal file
35
pkgs/tools/networking/netrw/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, stdenv, fetchurl
|
||||
, checksumType ? "built-in"
|
||||
, libmhash ? null
|
||||
, openssl ? null
|
||||
}:
|
||||
|
||||
assert checksumType == "mhash" -> libmhash != null;
|
||||
assert checksumType == "openssl" -> openssl != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "netrw";
|
||||
version = "1.3.2";
|
||||
|
||||
configureFlags = [
|
||||
"--with-checksum=${checksumType}"
|
||||
];
|
||||
|
||||
buildInputs = lib.optional (checksumType == "mhash") libmhash
|
||||
++ lib.optional (checksumType == "openssl") openssl;
|
||||
|
||||
src = fetchurl {
|
||||
urls = [
|
||||
"https://mamuti.net/files/netrw/netrw-${version}.tar.bz2"
|
||||
"http://www.sourcefiles.org/Networking/FTP/Other/netrw-${version}.tar.bz2"
|
||||
];
|
||||
sha256 = "1gnl80i5zkyj2lpnb4g0q0r5npba1x6cnafl2jb3i3pzlfz1bndr";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Simple tool for transporting data over the network";
|
||||
license = lib.licenses.gpl2;
|
||||
homepage = "https://mamuti.net/netrw/index.en.html";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue