11 electron = electron_29;
13 stdenv.mkDerivation rec {
14 pname = "passky-desktop";
17 src = fetchFromGitHub {
18 owner = "Rabbit-Company";
19 repo = "Passky-Desktop";
20 rev = "refs/tags/v${version}";
21 sha256 = "sha256-QQ0+qIkDPNCHeWmcF6FkbDrrt/r3fIkNi0dv6XlV1rc=";
32 mkdir -p $out/share/passky
33 cp -r "." "$out/share/passky/electron"
36 for icon in $out/share/passky/electron/images/icons/icon*.png; do
37 resolution=''${icon%".png"}
38 resolution=''${resolution##*/icon-}
39 mkdir -p "$out/share/icons/hicolor/''${resolution}/apps"
40 ln -s "$icon" "$out/share/icons/hicolor/''${resolution}/apps/passky.png"
43 mkdir "$out/share/applications"
44 makeWrapper ${electron}/bin/electron "$out/bin/passky" \
45 --add-flags "$out/share/passky/electron/" \
46 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
56 desktopName = "Passky";
57 comment = "Simple, modern, open source and secure password manager.";
61 categories = [ "Utility" ];
62 startupWMClass = "Passky";
68 description = "Simple, modern, lightweight, open source and secure password manager";
69 homepage = "https://passky.org";
70 downloadPage = "https://github.com/Rabbit-Company/Passky-Desktop/releases";
71 changelog = "https://github.com/Rabbit-Company/Passky-Desktop/releases/tag/v${version}";
72 license = licenses.gpl3Only;
73 maintainers = with maintainers; [ akkesm ];
74 mainProgram = "passky";
75 platforms = platforms.unix;