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 ]; 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 = '' installPhase = ''
mkdir -p $out/bin; cp cntlm $out/bin/; mkdir -p $out/bin; cp cntlm $out/bin/;
mkdir -p $out/share/; cp COPYRIGHT README VERSION doc/cntlm.conf $out/share/; mkdir -p $out/share/; cp COPYRIGHT README VERSION doc/cntlm.conf $out/share/;
@ -21,11 +26,12 @@ stdenv.mkDerivation rec {
description = "NTLM/NTLMv2 authenticating HTTP proxy"; description = "NTLM/NTLMv2 authenticating HTTP proxy";
homepage = http://cntlm.sourceforge.net/; homepage = http://cntlm.sourceforge.net/;
license = licenses.gpl2; license = licenses.gpl2;
maintainers = maintainers =
[ [
maintainers.qknight maintainers.qknight
maintainers.markWot maintainers.markWot
maintainers.carlosdagos
]; ];
platforms = platforms.linux; platforms = platforms.linux ++ platforms.darwin;
}; };
} }