2022-01-19 23:45:15 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-07-15 17:15:38 +00:00
|
|
|
, buildPythonApplication
|
|
|
|
, setuptools
|
2022-01-19 23:45:15 +00:00
|
|
|
, nss
|
2022-12-02 08:20:57 +00:00
|
|
|
, nix-update-script
|
2022-01-19 23:45:15 +00:00
|
|
|
}:
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildPythonApplication rec {
|
2022-01-19 23:45:15 +00:00
|
|
|
pname = "firefox_decrypt";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "1.1.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "unode";
|
|
|
|
repo = pname;
|
2023-08-04 22:07:22 +00:00
|
|
|
rev = "0931c0484d7429f7d4de3a2f5b62b01b7924b49f";
|
|
|
|
sha256 = "sha256-9HbH8DvHzmlem0XnDbcrIsMQRBuf82cHObqpLzQxNZM=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
makeWrapperArgs = [ "--prefix" "LD_LIBRARY_PATH" ":" (lib.makeLibraryPath [ nss ]) ];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2022-01-19 23:45:15 +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 ];
|
|
|
|
};
|
|
|
|
}
|