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