blob: f8e30334ce177ec1a44469c593887dd6a9b68776 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
stdenv,
fetchurl,
checksumType ? "built-in",
libmhash ? null,
openssl ? null,
}:
assert checksumType == "mhash" -> libmhash != null;
assert checksumType == "openssl" -> openssl != null;
stdenv.mkDerivation (finalAttrs: {
pname = "netrw";
version = "1.3.2";
configureFlags = [
# This is to add "#include" directives for stdlib.h, stdio.h and string.h.
"ac_cv_header_stdc=yes"
"--with-checksum=${checksumType}"
];
buildInputs =
lib.optional (checksumType == "mhash") libmhash ++ lib.optional (checksumType == "openssl") openssl;
src = fetchurl {
urls = [
"https://mamuti.net/files/netrw/netrw-${finalAttrs.version}.tar.bz2"
"http://www.sourcefiles.org/Networking/FTP/Other/netrw-${finalAttrs.version}.tar.bz2"
];
sha256 = "1gnl80i5zkyj2lpnb4g0q0r5npba1x6cnafl2jb3i3pzlfz1bndr";
};
meta = {
description = "Simple tool for transporting data over the network";
license = lib.licenses.gpl2Plus;
homepage = "https://mamuti.net/netrw/index.en.html";
platforms = lib.platforms.unix;
};
})
|