2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-01-23 09:08:35 +00:00
|
|
|
, fetchurl
|
2021-01-17 03:51:22 +00:00
|
|
|
, pkg-config
|
2020-01-23 09:08:35 +00:00
|
|
|
, glib
|
|
|
|
, gpm
|
|
|
|
, file
|
|
|
|
, e2fsprogs
|
|
|
|
, libX11
|
|
|
|
, libICE
|
|
|
|
, perl
|
|
|
|
, zip
|
|
|
|
, unzip
|
|
|
|
, gettext
|
|
|
|
, slang
|
|
|
|
, libssh2
|
|
|
|
, openssl
|
|
|
|
, coreutils
|
2020-03-14 07:28:34 +00:00
|
|
|
, autoreconfHook
|
2020-01-23 09:08:35 +00:00
|
|
|
}:
|
2008-01-23 09:58:07 +00:00
|
|
|
|
2008-01-28 19:49:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mc";
|
2021-01-30 16:39:04 +00:00
|
|
|
version = "4.8.26";
|
2017-05-17 00:15:07 +01:00
|
|
|
|
2008-01-23 09:58:07 +00:00
|
|
|
src = fetchurl {
|
2020-01-21 15:13:53 +00:00
|
|
|
url = "https://www.midnight-commander.org/downloads/${pname}-${version}.tar.xz";
|
2021-01-30 16:39:04 +00:00
|
|
|
sha256 = "sha256-xt6txQWV8tmiLcbCmanyizk+NYNG6/bKREqEadwWbCc=";
|
2008-01-23 09:58:07 +00:00
|
|
|
};
|
2017-05-17 00:15:07 +01:00
|
|
|
|
2021-03-05 18:11:00 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook unzip ];
|
2018-05-10 06:25:48 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2020-01-23 09:08:35 +00:00
|
|
|
file
|
|
|
|
gettext
|
|
|
|
glib
|
|
|
|
libICE
|
|
|
|
libX11
|
|
|
|
libssh2
|
|
|
|
openssl
|
|
|
|
perl
|
|
|
|
slang
|
|
|
|
zip
|
2021-01-15 09:19:50 +00:00
|
|
|
] ++ lib.optionals (!stdenv.isDarwin) [ e2fsprogs gpm ];
|
2018-05-10 06:25:48 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2016-08-30 09:38:51 +01:00
|
|
|
|
|
|
|
configureFlags = [ "--enable-vfs-smb" ];
|
2009-09-16 18:08:33 +01:00
|
|
|
|
2020-01-23 09:08:35 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/filemanager/ext.c \
|
|
|
|
--replace /bin/rm ${coreutils}/bin/rm
|
|
|
|
'';
|
|
|
|
|
2021-01-23 22:19:29 +00:00
|
|
|
preFixup = ''
|
2017-05-17 00:15:07 +01:00
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2008-02-05 09:34:39 +00:00
|
|
|
description = "File Manager and User Shell for the GNU Project";
|
2020-01-21 15:13:53 +00:00
|
|
|
downloadPage = "https://www.midnight-commander.org/downloads/";
|
2020-03-14 07:31:07 +00:00
|
|
|
homepage = "https://www.midnight-commander.org";
|
2020-01-23 09:08:35 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ sander ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2020-03-14 07:31:07 +00:00
|
|
|
repositories.git = "https://github.com/MidnightCommander/mc.git";
|
2016-10-04 09:04:33 +01:00
|
|
|
updateWalker = true;
|
2008-01-28 19:49:59 +00:00
|
|
|
};
|
2008-01-23 09:58:07 +00:00
|
|
|
}
|