1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/tools/misc/mc/default.nix
Josef Kemetmueller 23b922c98a mc: Fix darwin build
We remove linux specific packages from the darwin build of midnight
commander. Also slang wouldn't build on darwin without libiconv.
2016-11-21 12:30:30 +02:00

29 lines
1 KiB
Nix

{ stdenv, fetchurl, pkgconfig, glib, gpm, file, e2fsprogs
, libX11, libICE, perl, zip, unzip, gettext, slang, libssh2, openssl}:
stdenv.mkDerivation rec {
name = "mc-${version}";
version = "4.8.18";
src = fetchurl {
url = "http://www.midnight-commander.org/downloads/${name}.tar.xz";
sha256 = "1kmysm1x7smxs9k483nin6bx1rx0av8xrqjx9yf73hc7r4anhqzp";
};
buildInputs = [ pkgconfig perl glib slang zip unzip file gettext libX11 libICE
libssh2 openssl ] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ e2fsprogs gpm ];
configureFlags = [ "--enable-vfs-smb" ];
meta = {
description = "File Manager and User Shell for the GNU Project";
homepage = http://www.midnight-commander.org;
downloadPage = "http://www.midnight-commander.org/downloads/";
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;
updateWalker = true;
};
}