2012-07-20 01:49:47 +02:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, checksumType ? "built-in"
|
|
|
|
, libmhash ? null
|
|
|
|
, openssl ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert checksumType == "mhash" -> libmhash != null;
|
|
|
|
assert checksumType == "openssl" -> openssl != null;
|
2012-07-20 01:45:49 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "netrw-${version}";
|
|
|
|
version = "1.3.2";
|
|
|
|
|
2012-07-20 01:49:47 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--with-checksum=${checksumType}"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optional (checksumType == "mhash") libmhash
|
|
|
|
++ stdenv.lib.optional (checksumType == "openssl") openssl;
|
|
|
|
|
2012-07-20 01:45:49 +02:00
|
|
|
src = fetchurl {
|
|
|
|
urls = [
|
|
|
|
"http://mamuti.net/files/netrw/netrw-${version}.tar.bz2"
|
|
|
|
"http://www.sourcefiles.org/Networking/FTP/Other/netrw-${version}.tar.bz2"
|
|
|
|
];
|
|
|
|
sha256 = "1gnl80i5zkyj2lpnb4g0q0r5npba1x6cnafl2jb3i3pzlfz1bndr";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A simple tool for transporting data over the network.";
|
2012-07-21 13:39:55 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2012-07-20 01:45:49 +02:00
|
|
|
homepage = "http://mamuti.net/netrw/index.en.html";
|
|
|
|
};
|
|
|
|
}
|