sieve-editor-gui: misc improvements

Fugi 44cd52cc 44af9e1f

+12 -15
+12 -15
pkgs/by-name/si/sieve-editor-gui/package.nix
··· 4 buildNpmPackage, 5 fetchFromGitHub, 6 electron, 7 - nodejs_20, 8 - nodePackages, 9 makeDesktopItem, 10 copyDesktopItems, 11 runCommand, ··· 33 buildNpmPackage { 34 pname = "sieve-editor-gui"; 35 version = "0.6.1-unstable-2025-03-12"; 36 - nodejs = nodejs_20; 37 38 src = fetchFromGitHub { 39 owner = "thsmi"; ··· 44 45 npmDepsHash = "sha256-w2i7XsTx3hlsh/JbvShaxvDyFGcBpL66lMy7KL2tnzM="; 46 47 - nativeBuildInputs = [ 48 - electron 49 - nodePackages.gulp 50 - ] 51 - ++ lib.optionals stdenv.hostPlatform.isLinux [ copyDesktopItems ]; 52 53 - dontNpmBuild = true; 54 - 55 - buildPhase = '' 56 - gulp -LLLL app:package 57 - ''; 58 59 installPhase = '' 60 runHook preInstall ··· 62 + lib.optionalString stdenv.hostPlatform.isLinux '' 63 mv build/ $out 64 65 makeWrapper ${lib.getExe electron} $out/bin/sieve-editor-gui \ 66 --add-flags $out/electron/resources/main_esm.js 67 '' 68 + lib.optionalString stdenv.hostPlatform.isDarwin '' ··· 89 name = "sieve-editor-gui"; 90 exec = "sieve-editor-gui"; 91 desktopName = "Sieve Editor"; 92 - icon = "sieve-editor-gui"; 93 - categories = [ "Utility" ]; 94 }) 95 ]; 96
··· 4 buildNpmPackage, 5 fetchFromGitHub, 6 electron, 7 makeDesktopItem, 8 copyDesktopItems, 9 runCommand, ··· 31 buildNpmPackage { 32 pname = "sieve-editor-gui"; 33 version = "0.6.1-unstable-2025-03-12"; 34 35 src = fetchFromGitHub { 36 owner = "thsmi"; ··· 41 42 npmDepsHash = "sha256-w2i7XsTx3hlsh/JbvShaxvDyFGcBpL66lMy7KL2tnzM="; 43 44 + nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ copyDesktopItems ]; 45 46 + npmBuildScript = "gulp"; 47 + npmBuildFlags = [ "app:package" ]; 48 49 installPhase = '' 50 runHook preInstall ··· 52 + lib.optionalString stdenv.hostPlatform.isLinux '' 53 mv build/ $out 54 55 + install -D $out/electron/resources/libs/icons/linux.png $out/share/icons/hicolor/64x64/apps/sieve.png 56 + 57 makeWrapper ${lib.getExe electron} $out/bin/sieve-editor-gui \ 58 + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \ 59 --add-flags $out/electron/resources/main_esm.js 60 '' 61 + lib.optionalString stdenv.hostPlatform.isDarwin '' ··· 82 name = "sieve-editor-gui"; 83 exec = "sieve-editor-gui"; 84 desktopName = "Sieve Editor"; 85 + icon = "sieve"; 86 + categories = [ 87 + "Utility" 88 + "Email" 89 + ]; 90 + comment = "Tool to Manage Sieve Message Filters"; 91 }) 92 ]; 93