1{ lib
2, fetchFromGitHub
3, buildPythonApplication
4, setuptools
5, setuptools-scm
6, wheel
7, nss
8, nix-update-script
9}:
10
11buildPythonApplication rec {
12 pname = "firefox_decrypt";
13 version = "1.1.0";
14 format = "pyproject";
15
16 src = fetchFromGitHub {
17 owner = "unode";
18 repo = pname;
19 rev = "0931c0484d7429f7d4de3a2f5b62b01b7924b49f";
20 hash = "sha256-9HbH8DvHzmlem0XnDbcrIsMQRBuf82cHObqpLzQxNZM=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 setuptools-scm
26 wheel
27 ];
28
29 makeWrapperArgs = [ "--prefix" "LD_LIBRARY_PATH" ":" (lib.makeLibraryPath [ nss ]) ];
30
31 passthru.updateScript = nix-update-script { };
32
33 meta = with lib; {
34 homepage = "https://github.com/unode/firefox_decrypt";
35 description = "A tool to extract passwords from profiles of Mozilla Firefox and derivates";
36 license = licenses.gpl3Plus;
37 maintainers = with maintainers; [ schnusch ];
38 };
39}