1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00

Merge pull request #43993 from carlosdagos/cntlm-macos

cntlm: add support for darwin
This commit is contained in:
Daiderd Jordan 2018-07-25 21:19:26 +02:00 committed by GitHub
commit 7cc5624b3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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/;
@ -21,11 +26,12 @@ stdenv.mkDerivation rec {
description = "NTLM/NTLMv2 authenticating HTTP proxy";
homepage = http://cntlm.sourceforge.net/;
license = licenses.gpl2;
maintainers =
maintainers =
[
maintainers.qknight
maintainers.markWot
maintainers.carlosdagos
];
platforms = platforms.linux;
platforms = platforms.linux ++ platforms.darwin;
};
}