nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 41 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 which, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "cntlm"; 10 version = "0.92.3"; 11 12 src = fetchurl { 13 url = "mirror://sourceforge/cntlm/${pname}-${version}.tar.gz"; 14 sha256 = "1632szz849wasvh5sm6rm1zbvbrkq35k7kcyvx474gyl4h4x2flw"; 15 }; 16 17 buildInputs = [ which ]; 18 19 preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin '' 20 substituteInPlace configure --replace "xlc_r gcc" "xlc_r gcc $CC" 21 substitute Makefile Makefile.$CC --replace "CC=gcc" "CC=$CC" 22 ''; 23 24 installPhase = '' 25 mkdir -p $out/bin; cp cntlm $out/bin/; 26 mkdir -p $out/share/; cp COPYRIGHT README VERSION doc/cntlm.conf $out/share/; 27 mkdir -p $out/man/; cp doc/cntlm.1 $out/man/; 28 ''; 29 30 meta = with lib; { 31 description = "NTLM/NTLMv2 authenticating HTTP proxy"; 32 homepage = "https://cntlm.sourceforge.net/"; 33 license = licenses.gpl2Only; 34 maintainers = [ 35 maintainers.qknight 36 maintainers.carlosdagos 37 ]; 38 platforms = platforms.linux ++ platforms.darwin; 39 mainProgram = "cntlm"; 40 }; 41}