2011-08-01 10:24:14 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, gpm, file, e2fsprogs
|
2016-08-30 08:38:51 +00:00
|
|
|
, libX11, libICE, perl, zip, unzip, gettext, slang, libssh2, openssl}:
|
2008-01-23 09:58:07 +00:00
|
|
|
|
2008-01-28 19:49:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-07-13 10:43:17 +00:00
|
|
|
name = "mc-${version}";
|
2017-03-09 14:15:31 +00:00
|
|
|
version = "4.8.19";
|
2017-05-16 23:15:07 +00:00
|
|
|
|
2008-01-23 09:58:07 +00:00
|
|
|
src = fetchurl {
|
2016-10-04 08:04:33 +00:00
|
|
|
url = "http://www.midnight-commander.org/downloads/${name}.tar.xz";
|
2017-03-09 14:15:31 +00:00
|
|
|
sha256 = "1pzjq4nfxl2aakxipdjs5hq9n14374ly1l00s40kd2djnnxmd7pb";
|
2008-01-23 09:58:07 +00:00
|
|
|
};
|
2017-05-16 23:15:07 +00:00
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ perl glib slang zip unzip file gettext libX11 libICE
|
2016-11-20 19:27:29 +00:00
|
|
|
libssh2 openssl ] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ e2fsprogs gpm ];
|
2016-08-30 08:38:51 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--enable-vfs-smb" ];
|
2009-09-16 17:08:33 +00:00
|
|
|
|
2017-05-16 23:15:07 +00:00
|
|
|
postFixup = ''
|
|
|
|
# remove unwanted build-dependency references
|
|
|
|
sed -i -e "s!PKG_CONFIG_PATH=''${PKG_CONFIG_PATH}!PKG_CONFIG_PATH=$(echo "$PKG_CONFIG_PATH" | sed -e 's/./0/g')!" $out/bin/mc
|
|
|
|
'';
|
|
|
|
|
2008-01-28 19:49:59 +00:00
|
|
|
meta = {
|
2008-02-05 09:34:39 +00:00
|
|
|
description = "File Manager and User Shell for the GNU Project";
|
2011-08-01 10:24:14 +00:00
|
|
|
homepage = http://www.midnight-commander.org;
|
2016-10-04 08:04:33 +00:00
|
|
|
downloadPage = "http://www.midnight-commander.org/downloads/";
|
2014-04-03 07:30:47 +00:00
|
|
|
repositories.git = git://github.com/MidnightCommander/mc.git;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-08-01 10:24:14 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.sander ];
|
2016-11-20 19:27:29 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2016-10-04 08:04:33 +00:00
|
|
|
updateWalker = true;
|
2008-01-28 19:49:59 +00:00
|
|
|
};
|
2008-01-23 09:58:07 +00:00
|
|
|
}
|