4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
36 lines
1.0 KiB
Nix
36 lines
1.0 KiB
Nix
{ lib, stdenv, fetchFromGitLab, python2, python2Packages }:
|
|
|
|
python2Packages.buildPythonApplication rec {
|
|
pname = "creddump";
|
|
version = "0.3";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "kalilinux";
|
|
repo = "packages/creddump";
|
|
rev = "debian/${version}-1kali2";
|
|
sha256 = "0r3rs2hggsvv619l3fh3c0jli6d3ryyj30ni3hz0nz670z5smzcf";
|
|
};
|
|
|
|
# No setup.py is available
|
|
dontBuild = true;
|
|
doCheck = false;
|
|
propagatedBuildInputs = [ python2Packages.pycrypto ];
|
|
|
|
installPhase = ''
|
|
mkdir -p ${placeholder "out"}/bin
|
|
cp -r framework ${placeholder "out"}/bin/framework
|
|
cp pwdump.py ${placeholder "out"}/bin/pwdump
|
|
cp cachedump.py ${placeholder "out"}/bin/cachedump
|
|
cp lsadump.py ${placeholder "out"}/bin/lsadump
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python tool to extract various credentials and secrets from Windows registry hives";
|
|
homepage = "https://gitlab.com/kalilinux/packages/creddump";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.fishi0x01 ];
|
|
};
|
|
}
|
|
|