2022-01-11 18:10:35 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenvNoCC
|
|
|
|
, nss
|
|
|
|
, wrapPython
|
2022-11-23 22:59:42 +00:00
|
|
|
, nix-update-script
|
2022-01-11 18:10:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "firefox_decrypt";
|
2022-12-24 16:28:36 +00:00
|
|
|
version = "unstable-2022-12-21";
|
2022-01-11 18:10:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "unode";
|
|
|
|
repo = pname;
|
2022-12-24 16:28:36 +00:00
|
|
|
rev = "84bb368cc2f8d2055a8374ab1a40c403e0486859";
|
|
|
|
sha256 = "sha256-dyQTf6fgsQEmp++DeXl85nvyezm0Lq9onyfIdhQoGgI=";
|
2022-01-11 18:10:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapPython ];
|
|
|
|
|
|
|
|
buildInputs = [ nss ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm 0755 firefox_decrypt.py "$out/bin/firefox_decrypt"
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeWrapperArgs = [ "--prefix" "LD_LIBRARY_PATH" ":" (lib.makeLibraryPath [ nss ]) ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonPrograms
|
|
|
|
'';
|
|
|
|
|
2022-11-23 22:59:42 +00:00
|
|
|
passthru.updateScript = nix-update-script {
|
|
|
|
extraArgs = [ "--version=branch" ];
|
|
|
|
};
|
2022-01-11 18:10:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/unode/firefox_decrypt";
|
|
|
|
description = "A tool to extract passwords from profiles of Mozilla Firefox and derivates";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ schnusch ];
|
|
|
|
};
|
|
|
|
}
|