sieve-editor-gui: misc improvements

Fugi 44cd52cc 44af9e1f

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