Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 makeWrapper, 6 samba, 7 perl, 8 openldap, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "enum4linux"; 13 version = "0.9.1"; 14 15 src = fetchFromGitHub { 16 owner = "CiscoCXSecurity"; 17 repo = "enum4linux"; 18 rev = "v${version}"; 19 sha256 = "sha256-/R0P4Ft9Y0LZwKwhDGAe36UKviih6CNbJbj1lcNKEkM="; 20 }; 21 22 dontBuild = true; 23 24 nativeBuildInputs = [ 25 makeWrapper 26 ]; 27 28 buildInputs = [ 29 openldap 30 perl 31 samba 32 ]; 33 34 installPhase = '' 35 mkdir -p $out/bin 36 cp enum4linux.pl $out/bin/enum4linux 37 38 wrapProgram $out/bin/enum4linux \ 39 --prefix PATH : ${ 40 lib.makeBinPath [ 41 samba 42 openldap 43 ] 44 } 45 ''; 46 47 meta = with lib; { 48 description = "Tool for enumerating information from Windows and Samba systems"; 49 mainProgram = "enum4linux"; 50 homepage = "https://labs.portcullis.co.uk/tools/enum4linux/"; 51 license = licenses.gpl2Plus; 52 maintainers = with maintainers; [ fishi0x01 ]; 53 platforms = platforms.unix; 54 }; 55}