nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 nss,
5 nix-update-script,
6 stdenv,
7 python3Packages,
8}:
9
10python3Packages.buildPythonApplication rec {
11 pname = "firefox_decrypt";
12 version = "1.1.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "unode";
17 repo = "firefox_decrypt";
18 tag = version;
19 hash = "sha256-HPjOUWusPXoSwwDvW32Uad4gFERvn79ee/WxeX6h3jY=";
20 };
21
22 build-system = with python3Packages; [
23 setuptools
24 setuptools-scm
25 wheel
26 ];
27
28 makeWrapperArgs = [
29 "--prefix"
30 (if stdenv.hostPlatform.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH")
31 ":"
32 (lib.makeLibraryPath [ nss ])
33 ];
34
35 passthru.updateScript = nix-update-script { };
36
37 meta = {
38 homepage = "https://github.com/unode/firefox_decrypt";
39 description = "Tool to extract passwords from profiles of Mozilla Firefox and derivates";
40 mainProgram = "firefox_decrypt";
41 license = lib.licenses.gpl3Plus;
42 maintainers = with lib.maintainers; [
43 schnusch
44 unode
45 ];
46 };
47}