2012-07-19 23:49:47 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, checksumType ? "built-in"
|
|
|
|
, libmhash ? null
|
|
|
|
, openssl ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert checksumType == "mhash" -> libmhash != null;
|
|
|
|
assert checksumType == "openssl" -> openssl != null;
|
2012-07-19 23:45:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "netrw";
|
2012-07-19 23:45:49 +00:00
|
|
|
version = "1.3.2";
|
|
|
|
|
2012-07-19 23:49:47 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-checksum=${checksumType}"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optional (checksumType == "mhash") libmhash
|
|
|
|
++ stdenv.lib.optional (checksumType == "openssl") openssl;
|
|
|
|
|
2012-07-19 23:45:49 +00:00
|
|
|
src = fetchurl {
|
|
|
|
urls = [
|
2018-06-28 18:43:35 +00:00
|
|
|
"https://mamuti.net/files/netrw/netrw-${version}.tar.bz2"
|
2012-07-19 23:45:49 +00:00
|
|
|
"http://www.sourcefiles.org/Networking/FTP/Other/netrw-${version}.tar.bz2"
|
|
|
|
];
|
|
|
|
sha256 = "1gnl80i5zkyj2lpnb4g0q0r5npba1x6cnafl2jb3i3pzlfz1bndr";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Simple tool for transporting data over the network";
|
2012-07-21 11:39:55 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://mamuti.net/netrw/index.en.html;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2012-07-19 23:45:49 +00:00
|
|
|
};
|
|
|
|
}
|