Skip to content

Commit fb19aac

Browse files
committedMay 16, 2017
mc: remove unwanted build-dependency references
fixes #25836
1 parent ea229a2 commit fb19aac

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

‎pkgs/tools/misc/mc/default.nix

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,22 @@
44
stdenv.mkDerivation rec {
55
name = "mc-${version}";
66
version = "4.8.19";
7-
7+
88
src = fetchurl {
99
url = "http://www.midnight-commander.org/downloads/${name}.tar.xz";
1010
sha256 = "1pzjq4nfxl2aakxipdjs5hq9n14374ly1l00s40kd2djnnxmd7pb";
1111
};
12-
12+
1313
buildInputs = [ pkgconfig perl glib slang zip unzip file gettext libX11 libICE
1414
libssh2 openssl ] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ e2fsprogs gpm ];
1515

1616
configureFlags = [ "--enable-vfs-smb" ];
1717

18+
postFixup = ''
19+
# remove unwanted build-dependency references
20+
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
21+
'';
22+
1823
meta = {
1924
description = "File Manager and User Shell for the GNU Project";
2025
homepage = http://www.midnight-commander.org;

3 commit comments

Comments
 (3)

peterhoeg commented on May 17, 2017

@peterhoeg
Member

Can't we simply move pkgconfig to nativeBuildInputs and get this for free?

Mic92 commented on May 17, 2017

@Mic92
MemberAuthor

@peterhoeg how does it help with strings in the binary?

peterhoeg commented on May 17, 2017

@peterhoeg
Member

Indeed it does not.

Please sign in to comment.