1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 04:48:10 +00:00
nixpkgs/pkgs/tools/misc/mc/default.nix

39 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, glib, gpm, file, e2fsprogs
2016-08-30 09:38:51 +01:00
, libX11, libICE, perl, zip, unzip, gettext, slang, libssh2, openssl}:
stdenv.mkDerivation rec {
pname = "mc";
version = "4.8.23";
src = fetchurl {
url = "http://www.midnight-commander.org/downloads/${pname}-${version}.tar.xz";
sha256 = "077z7phzq3m1sxyz7li77lyzv4rjmmh3wp2vy86pnc4387kpqzyx";
};
nativeBuildInputs = [ pkgconfig ];
2018-05-10 06:25:48 +01: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 09:38:51 +01:00
configureFlags = [ "--enable-vfs-smb" ];
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
'';
meta = {
description = "File Manager and User Shell for the GNU Project";
homepage = http://www.midnight-commander.org;
2016-10-04 09:04:33 +01:00
downloadPage = "http://www.midnight-commander.org/downloads/";
2014-04-03 08:30:47 +01:00
repositories.git = git://github.com/MidnightCommander/mc.git;
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.sander ];
platforms = with stdenv.lib.platforms; linux ++ darwin;
2016-10-04 09:04:33 +01:00
updateWalker = true;
};
}