at 22.05-pre 900 B view raw
1{ lib, stdenv, fetchurl, makeWrapper, samba, perl, openldap }: 2 3stdenv.mkDerivation rec { 4 pname = "enum4linux"; 5 version = "0.8.9"; 6 src = fetchurl { 7 url = "https://labs.portcullis.co.uk/download/enum4linux-${version}.tar.gz"; 8 sha256 = "41334df0cb1ba82db9e3212981340372bb355a8160073331d2a1610908a62d85"; 9 }; 10 11 dontBuild = true; 12 nativeBuildInputs = [ makeWrapper ]; 13 buildInputs = [ samba perl openldap ]; 14 15 installPhase = '' 16 mkdir -p $out/bin 17 cp enum4linux.pl $out/bin/enum4linux 18 19 wrapProgram $out/bin/enum4linux \ 20 --prefix PATH : ${lib.makeBinPath [ samba openldap ]} 21 ''; 22 23 meta = with lib; { 24 description = "A tool for enumerating information from Windows and Samba systems"; 25 homepage = "https://labs.portcullis.co.uk/tools/enum4linux/"; 26 license = licenses.gpl2; 27 platforms = platforms.unix; 28 maintainers = [ maintainers.fishi0x01 ]; 29 }; 30} 31