mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
51 lines
963 B
Nix
51 lines
963 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, samba
|
|
, perl
|
|
, openldap
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "enum4linux";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CiscoCXSecurity";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-/R0P4Ft9Y0LZwKwhDGAe36UKviih6CNbJbj1lcNKEkM=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
openldap
|
|
perl
|
|
samba
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp enum4linux.pl $out/bin/enum4linux
|
|
|
|
wrapProgram $out/bin/enum4linux \
|
|
--prefix PATH : ${lib.makeBinPath [ samba openldap ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool for enumerating information from Windows and Samba systems";
|
|
mainProgram = "enum4linux";
|
|
homepage = "https://labs.portcullis.co.uk/tools/enum4linux/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ fishi0x01 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|
|
|