nixpkgs/pkgs/tools/misc/mc/default.nix
Ryan Mulligan f132dcf464 mc: 4.8.19 -> 4.8.20
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/1qjgxba6vrvnq70gjwfmhhj0blxlr5fy-mc-4.8.20/bin/mc -h` got 0 exit code
- ran `/nix/store/1qjgxba6vrvnq70gjwfmhhj0blxlr5fy-mc-4.8.20/bin/mc --help` got 0 exit code
- ran `/nix/store/1qjgxba6vrvnq70gjwfmhhj0blxlr5fy-mc-4.8.20/bin/mc -V` and found version 4.8.20
- ran `/nix/store/1qjgxba6vrvnq70gjwfmhhj0blxlr5fy-mc-4.8.20/bin/mc --version` and found version 4.8.20
- ran `/nix/store/1qjgxba6vrvnq70gjwfmhhj0blxlr5fy-mc-4.8.20/bin/mc -h` and found version 4.8.20
- ran `/nix/store/1qjgxba6vrvnq70gjwfmhhj0blxlr5fy-mc-4.8.20/bin/mc --help` and found version 4.8.20
- found 4.8.20 with grep in /nix/store/1qjgxba6vrvnq70gjwfmhhj0blxlr5fy-mc-4.8.20
- found 4.8.20 in filename of file in /nix/store/1qjgxba6vrvnq70gjwfmhhj0blxlr5fy-mc-4.8.20

cc "@sander"
2018-02-27 06:02:03 -08:00

35 lines
1.2 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.20";
src = fetchurl {
url = "http://www.midnight-commander.org/downloads/${name}.tar.xz";
sha256 = "072h7n9b3j79fqn48xaw0xhlcjavpsmfpz6nyh20lhmfz3sffzh1";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ perl glib slang zip unzip file gettext libX11 libICE
libssh2 openssl ] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ e2fsprogs gpm ];
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;
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;
};
}