10 stdenvNoCC.mkDerivation (finalAttrs: {
11 pname = "proton-pass";
15 url = "https://proton.me/download/pass/linux/x64/proton-pass_${finalAttrs.version}_amd64.deb";
16 hash = "sha256-gilHkk9vVxnYJKy79lDrlMd8uWys50TEUbGaHVr958o=";
28 # Rebuild the ASAR archive, hardcoding the resourcesPath
30 asar extract usr/lib/proton-pass/resources/app.asar tmp
31 rm usr/lib/proton-pass/resources/app.asar
32 substituteInPlace tmp/.webpack/main/index.js \
33 --replace-fail "process.resourcesPath" "'$out/share/proton-pass'"
34 asar pack tmp/ usr/lib/proton-pass/resources/app.asar
40 mkdir -p $out/share/proton-pass
41 cp -r usr/share/ $out/
42 cp -r usr/lib/proton-pass/resources/{app.asar,assets} $out/share/proton-pass/
47 makeWrapper ${lib.getExe electron} $out/bin/proton-pass \
48 --add-flags $out/share/proton-pass/app.asar \
49 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \
50 --set-default ELECTRON_FORCE_IS_PACKAGED 1 \
51 --set-default ELECTRON_IS_DEV 0 \
56 description = "Desktop application for Proton Pass";
57 homepage = "https://proton.me/pass";
58 license = lib.licenses.gpl3Plus;
59 maintainers = with lib.maintainers; [
64 platforms = [ "x86_64-linux" ];
65 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
66 mainProgram = "proton-pass";