2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2020-04-24 23:36:52 +00:00
|
|
|
, 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}"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
buildInputs = lib.optional (checksumType == "mhash") libmhash
|
|
|
|
++ lib.optional (checksumType == "openssl") openssl;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://mamuti.net/netrw/index.en.html";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|