10 stdenv.mkDerivation rec {
11 pname = "passky-desktop";
14 src = fetchFromGitHub {
15 owner = "Rabbit-Company";
16 repo = "Passky-Desktop";
17 rev = "refs/tags/v${version}";
18 sha256 = "1ma8s1bngjdzclcc4m5pcmavk38sidaskmz7dgfnv84y35si18dr";
21 nativeBuildInputs = [ makeWrapper copyDesktopItems ];
26 mkdir -p $out/share/passky
27 cp -r "." "$out/share/passky/electron"
30 for icon in $out/share/passky/electron/images/icons/icon*.png; do
31 resolution=''${icon%".png"}
32 resolution=''${resolution##*/icon-}
33 mkdir -p "$out/share/icons/hicolor/''${resolution}/apps"
34 ln -s "$icon" "$out/share/icons/hicolor/''${resolution}/apps/passky.png"
37 mkdir "$out/share/applications"
38 makeWrapper ${electron_22}/bin/electron "$out/bin/passky" \
39 --add-flags "$out/share/passky/electron/" \
40 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
50 desktopName = "passky";
51 comment = "Simple, modern, open source and secure password manager.";
54 categories = [ "Utility" ];
55 startupWMClass = "Passky";
61 description = "A simple, modern, lightweight, open source and secure password manager";
62 homepage = "https://passky.org";
63 downloadPage = "https://github.com/Rabbit-Company/Passky-Desktop/releases";
64 changelog = "https://github.com/Rabbit-Company/Passky-Desktop/releases/tag/v${version}";
65 license = licenses.gpl3Only;
66 maintainers = with maintainers; [ akkesm ];
67 mainProgram = "passky";
68 platforms = platforms.unix;