matt1432
3657157b03
All checks were successful
Discord / discord commits (push) Has been skipped
Flake Inputs: • Updated input 'ags': 'github:Aylur/ags' (2025-01-05) rev: 5527c3c07d92c11e04e7fd99d58429493dba7e3c → 'github:Aylur/ags' (2025-01-12) rev: 90db9b9fecc0f4228440d83107c6c745a35e7d77 • Updated input 'astal': 'github:Aylur/astal' (2025-01-10) rev: ef4f95608481414053ecdbe4de29bd86fb452813 → 'github:Aylur/astal' (2025-01-12) rev: 6fd7ae514af36ff9baf1209a2eeebd3a26cf94ce • Updated input 'custom-sidebar-src': 'github:elchininet/custom-sidebar' (2025-01-05) rev: f5a9a86adcbe68aeefea45e12294368d54fe8156 → 'github:elchininet/custom-sidebar' (2025-01-12) rev: dd69b17b383e6135a8198248292786b7839aef85 • Updated input 'hyprgrass': 'github:horriblename/hyprgrass' (2025-01-02) rev: bdfa960b97ac98ad9d05c908ee20e053e2942928 → 'github:horriblename/hyprgrass' (2025-01-09) rev: dcf43737772490f9dc755983f5c8ddda5f83ec5b • Updated input 'hyprland': 'github:hyprwm/Hyprland' (2025-01-06) rev: b9f110ef8726fcba2b4ee69856027731e73003a5 → 'github:hyprwm/Hyprland' (2025-01-12) rev: a6b263713a2b862ed41362082e2147e081934077 • Updated input 'hyprland-plugins': 'github:hyprwm/hyprland-plugins' (2025-01-05) rev: b6b31113ce84419c69ed575c22194e4023d2952a → 'github:hyprwm/hyprland-plugins' (2025-01-08) rev: b4c0fa3ebc6ccd1589dcd17904652223088efede • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS' (2025-01-11) rev: 1ddf0b3bfe076fa50b84244e42a55b9234f96083 → 'github:Jovian-Experiments/Jovian-NixOS' (2025-01-12) rev: 54d7806eb668a28ab1dbdd25ee0caab6f8c62433 • Updated input 'material-rounded-theme-src': 'github:Nerwyn/material-rounded-theme' (2025-01-08) rev: 64b43de45e1e5bcfab8aa84f7b9dccd9764e027f → 'github:Nerwyn/material-rounded-theme' (2025-01-11) rev: 6d3b79a79b72f70c4a015dd7dbbf1c41a2b33a35 • Updated input 'nix-gaming': 'github:fufexan/nix-gaming' (2025-01-11) rev: 0e562d23a2df60788af3aeda21590032b416be7c → 'github:fufexan/nix-gaming' (2025-01-12) rev: f0bba32370e38a6ed18d7c5c741d23fe53e2d265 • Updated input 'nix-index-db': 'github:Mic92/nix-index-database' (2025-01-09) rev: a2200b499efa01ca8646173e94cdfcc93188f2b8 → 'github:Mic92/nix-index-database' (2025-01-12) rev: 271e5bd7c57e1f001693799518b10a02d1123b12 • Updated input 'nixpkgs': 'github:NixOS/nixpkgs' (2025-01-08) rev: bffc22eb12172e6db3c5dde9e3e5628f8e3e7912 → 'github:NixOS/nixpkgs' (2025-01-10) rev: 130595eba61081acde9001f43de3248d8888ac4a • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland' (2025-01-11) rev: 37553f5a9728a5ced261f0aa9c050056e7f61bde → 'github:nix-community/nixpkgs-wayland' (2025-01-12) rev: 2cb439411d17eb145a99536196f5ab11685268b8 • Updated input 'tuya-local-src': 'github:make-all/tuya-local' (2025-01-11) rev: 29def3abf990d04f311a0d4324d54aedc4b841c8 → 'github:make-all/tuya-local' (2025-01-12) rev: 627e07e5627da27ccc474bfe9cdb61f3126e0adb Docker Images: • rssbridge/rss-bridge latest: sha256:2f94bc58b926a9ae2efb62c2bd08723b22adceb47d5590be00b56dc05ba2a0e3 → sha256:f2ffb2127499e4c86f001ba5adaa86f80f5167ae4bcea6bdd11401eb0f769224 • ghcr.io/linuxserver/radarr latest: sha256:e633fc93b9e2cea959853d27c6acc1d0b2d1ed7db4a800f6f46fe5b217f13102 → sha256:dce7e81d08da67cf44437c7213d19faeef1323aa839712fbb53d1253ef94f93f
105 lines
3.3 KiB
Nix
105 lines
3.3 KiB
Nix
final: prev: let
|
|
pkgs = final;
|
|
|
|
inherit (pkgs) recurseIntoAttrs callPackages;
|
|
in {
|
|
# FIXME: https://pr-tracker.nelim.org/?pr=373146
|
|
bat-extras = recurseIntoAttrs (callPackages ./bat-extras.nix {});
|
|
|
|
# FIXME: https://pr-tracker.nelim.org/?pr=357699
|
|
nodejs_latest = prev.nodejs_22;
|
|
|
|
# FIXME: https://github.com/NixOS/nixpkgs/issues/365156
|
|
protonmail-desktop = final.callPackage ({
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
makeWrapper,
|
|
dpkg,
|
|
electron,
|
|
unzip,
|
|
}: let
|
|
mainProgram = "proton-mail";
|
|
srcHashes = {
|
|
universal-darwin = "sha256-6b+CNCvrkIA1CvSohSJZq/veZZNsA3lyhVv5SsBlJlw=";
|
|
x86_64-linux = "sha256-v8ufnQQEqTT5cr7fq8Fozje/NDlBzaCeKIzE6yU/biE=";
|
|
};
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "protonmail-desktop";
|
|
version = "1.0.6";
|
|
|
|
src = fetchurl {
|
|
url =
|
|
if stdenv.hostPlatform.isDarwin
|
|
then "https://github.com/ProtonMail/inbox-desktop/releases/download/${version}/Proton.Mail-darwin-universal-${version}.zip"
|
|
else "https://github.com/ProtonMail/inbox-desktop/releases/download/${version}/proton-mail_${version}_amd64.deb";
|
|
sha256 =
|
|
{
|
|
x86_64-linux = srcHashes.x86_64-linux;
|
|
x86_64-darwin = srcHashes.universal-darwin;
|
|
aarch64-darwin = srcHashes.universal-darwin;
|
|
}
|
|
.${stdenv.hostPlatform.system}
|
|
or (throw "unsupported system ${stdenv.hostPlatform.system}");
|
|
};
|
|
|
|
sourceRoot = lib.optionalString stdenv.hostPlatform.isDarwin ".";
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs =
|
|
[
|
|
makeWrapper
|
|
]
|
|
++ lib.optional stdenv.hostPlatform.isLinux dpkg
|
|
++ lib.optional stdenv.hostPlatform.isDarwin unzip;
|
|
|
|
installPhase = let
|
|
darwin = ''
|
|
mkdir -p $out/{Applications,bin}
|
|
cp -r "Proton Mail.app" $out/Applications/
|
|
makeWrapper $out/Applications/"Proton Mail.app"/Contents/MacOS/Proton\ Mail $out/bin/protonmail-desktop
|
|
'';
|
|
linux = ''
|
|
runHook preInstall
|
|
mkdir -p $out
|
|
cp -r usr/share/ $out/
|
|
cp -r usr/lib/proton-mail/resources/app.asar $out/share/
|
|
'';
|
|
in ''
|
|
runHook preInstall
|
|
|
|
${
|
|
if stdenv.hostPlatform.isDarwin
|
|
then darwin
|
|
else linux
|
|
}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
preFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
|
|
makeWrapper ${lib.getExe electron} $out/bin/${mainProgram} \
|
|
--add-flags $out/share/app.asar \
|
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \
|
|
--set-default ELECTRON_FORCE_IS_PACKAGED 1 \
|
|
--set-default ELECTRON_IS_DEV 0 \
|
|
--inherit-argv0
|
|
'';
|
|
|
|
meta = {
|
|
description = "Desktop application for Mail and Calendar, made with Electron";
|
|
homepage = "https://github.com/ProtonMail/inbox-desktop";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = [
|
|
"x86_64-linux"
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
];
|
|
sourceProvenance = [lib.sourceTypes.binaryNativeCode];
|
|
inherit mainProgram;
|
|
};
|
|
}) {};
|
|
}
|