nixpkgs/pkgs/tools/security/enum4linux/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
933 B
Nix
Raw Normal View History

2021-11-28 10:10:09 +00:00
{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, samba
, perl
, openldap
}:
2020-01-25 20:25:44 +00:00
stdenv.mkDerivation rec {
pname = "enum4linux";
2021-11-28 10:10:09 +00:00
version = "0.9.1";
src = fetchFromGitHub {
owner = "CiscoCXSecurity";
repo = pname;
rev = "v${version}";
sha256 = "sha256-/R0P4Ft9Y0LZwKwhDGAe36UKviih6CNbJbj1lcNKEkM=";
2020-01-25 20:25:44 +00:00
};
dontBuild = true;
2021-11-28 10:10:09 +00:00
nativeBuildInputs = [
makeWrapper
];
buildInputs = [
openldap
perl
samba
];
2020-01-25 20:25:44 +00:00
installPhase = ''
mkdir -p $out/bin
cp enum4linux.pl $out/bin/enum4linux
wrapProgram $out/bin/enum4linux \
2021-01-15 09:19:50 +00:00
--prefix PATH : ${lib.makeBinPath [ samba openldap ]}
2020-01-25 20:25:44 +00:00
'';
meta = with lib; {
2020-01-25 20:25:44 +00:00
description = "A tool for enumerating information from Windows and Samba systems";
homepage = "https://labs.portcullis.co.uk/tools/enum4linux/";
2021-11-28 10:10:09 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fishi0x01 ];
2020-01-25 20:25:44 +00:00
platforms = platforms.unix;
};
}