2022-01-19 23:45:15 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-07-15 17:15:38 +00:00
|
|
|
, buildPythonApplication
|
|
|
|
, setuptools
|
2023-08-22 20:05:09 +00:00
|
|
|
, setuptools-scm
|
|
|
|
, wheel
|
2022-01-19 23:45:15 +00:00
|
|
|
, nss
|
2022-12-02 08:20:57 +00:00
|
|
|
, nix-update-script
|
2024-04-21 15:54:59 +00:00
|
|
|
, stdenv
|
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";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-9HbH8DvHzmlem0XnDbcrIsMQRBuf82cHObqpLzQxNZM=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
2023-08-22 20:05:09 +00:00
|
|
|
setuptools-scm
|
|
|
|
wheel
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
2022-01-19 23:45:15 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
makeWrapperArgs = [
|
|
|
|
"--prefix"
|
|
|
|
(if stdenv.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH")
|
|
|
|
":"
|
|
|
|
(lib.makeLibraryPath [ nss ])
|
|
|
|
];
|
2022-01-19 23:45:15 +00:00
|
|
|
|
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";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool to extract passwords from profiles of Mozilla Firefox and derivates";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "firefox_decrypt";
|
2022-01-19 23:45:15 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ schnusch ];
|
|
|
|
};
|
|
|
|
}
|