2011-08-01 12:24:14 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, gpm, file, e2fsprogs
|
2016-08-30 10:38:51 +02:00
|
|
|
, libX11, libICE, perl, zip, unzip, gettext, slang, libssh2, openssl}:
|
2008-01-23 10:58:07 +01:00
|
|
|
|
2008-01-28 20:49:59 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mc";
|
2019-07-02 02:16:40 +02:00
|
|
|
version = "4.8.23";
|
2017-05-17 01:15:07 +02:00
|
|
|
|
2008-01-23 10:58:07 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://www.midnight-commander.org/downloads/${pname}-${version}.tar.xz";
|
2019-07-02 02:16:40 +02:00
|
|
|
sha256 = "077z7phzq3m1sxyz7li77lyzv4rjmmh3wp2vy86pnc4387kpqzyx";
|
2008-01-23 10:58:07 +01:00
|
|
|
};
|
2017-05-17 01:15:07 +02:00
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-05-10 07:25:48 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
perl glib slang zip unzip file gettext libX11 libICE libssh2 openssl
|
|
|
|
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ e2fsprogs gpm ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2016-08-30 10:38:51 +02:00
|
|
|
|
|
|
|
configureFlags = [ "--enable-vfs-smb" ];
|
2009-09-16 19:08:33 +02:00
|
|
|
|
2017-05-17 01:15:07 +02: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 20:49:59 +01:00
|
|
|
meta = {
|
2008-02-05 10:34:39 +01:00
|
|
|
description = "File Manager and User Shell for the GNU Project";
|
2011-08-01 12:24:14 +02:00
|
|
|
homepage = http://www.midnight-commander.org;
|
2016-10-04 10:04:33 +02:00
|
|
|
downloadPage = "http://www.midnight-commander.org/downloads/";
|
2014-04-03 09:30:47 +02:00
|
|
|
repositories.git = git://github.com/MidnightCommander/mc.git;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-08-01 12:24:14 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.sander ];
|
2016-11-20 20:27:29 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2016-10-04 10:04:33 +02:00
|
|
|
updateWalker = true;
|
2008-01-28 20:49:59 +01:00
|
|
|
};
|
2008-01-23 10:58:07 +01:00
|
|
|
}
|