cntlm: add support for darwin

This commit is contained in:
Carlos D 2018-07-25 11:35:02 +10:00
parent 7fdba7c74e
commit 8b306bab12

View File

@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
buildInputs = [ which ];
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace configure --replace "xlc_r gcc" "xlc_r gcc $CC"
substitute Makefile Makefile.$CC --replace "CC=gcc" "CC=$CC"
'';
installPhase = ''
mkdir -p $out/bin; cp cntlm $out/bin/;
mkdir -p $out/share/; cp COPYRIGHT README VERSION doc/cntlm.conf $out/share/;
@ -25,7 +30,8 @@ stdenv.mkDerivation rec {
[
maintainers.qknight
maintainers.markWot
maintainers.carlosdagos
];
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
};
}