Change:
Steps to reproduce the behavior: -shell -p redisinsight Multiple of these errors Full log - Add any other context about the problem here. <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
<del> { lib , stdenv , fetchFromGitHub , makeWrapper , makeDesktopItem , fixup_yarn_lock , yarn , nodejs_18 , python3 , fetchYarnDeps , electron , desktopToDarwinBundle , nest-cli , libsass , buildPackages , pkg-config , sqlite , xdg-utils </del> <ins> { lib, stdenv, fetchFromGitHub, makeWrapper, makeDesktopItem, copyDesktopItems, fixup-yarn-lock, yarn, nodejs_18, python3, fetchYarnDeps, electron, nest-cli, libsass, buildPackages, pkg-config, sqlite, xdg-utils, </ins> }: let nodejs = nodejs_18; in stdenv.mkDerivation (finalAttrs: { <del> pname = "redisinsight-electron"; </del> <ins> pname = "redisinsight"; </ins> version = "2.32"; src = fetchFromGitHub { owner = "RedisInsight"; repo = "RedisInsight"; <del> rev = "${finalAttrs.version}"; </del> <ins> rev = finalAttrs.version; </ins> hash = "sha256-esaH10AyEooym/62F5LJL7oP5UmD6T2UX8g/9QniL9s="; }; offlineCache = fetchYarnDeps { yarnLock = finalAttrs.src + "/yarn.lock"; <del> sha256 = "NHKttywAaWAYkciGzYCnm1speHrWsv1t+dxL1DZgM7o="; </del> <ins> hash = "sha256-NHKttywAaWAYkciGzYCnm1speHrWsv1t+dxL1DZgM7o="; </ins> }; feOfflineCache = fetchYarnDeps { yarnLock = finalAttrs.src + "/redisinsight/yarn.lock"; <del> sha256 = "1S1KNUOtmywQ0eyqVS2oRlhpjcL9eps8CR7AtC9ujSU="; </del> <ins> hash = "sha256-1S1KNUOtmywQ0eyqVS2oRlhpjcL9eps8CR7AtC9ujSU="; </ins> }; apiOfflineCache = fetchYarnDeps { yarnLock = finalAttrs.src + "/redisinsight/api/yarn.lock"; <del> sha256 = "P99+1Dhdg/vznC2KepPrVGNlrofJFydXkZVxgwprIx4="; </del> <ins> hash = "sha256-P99+1Dhdg/vznC2KepPrVGNlrofJFydXkZVxgwprIx4="; </ins> }; <del> nativeBuildInputs = [ yarn fixup_yarn_lock nodejs makeWrapper python3 nest-cli libsass pkg-config ] ++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle ]; buildInputs = [ sqlite xdg-utils ]; </del> <ins> nativeBuildInputs = [ yarn fixup-yarn-lock nodejs makeWrapper python3 nest-cli libsass pkg-config copyDesktopItems ]; buildInputs = [ sqlite xdg-utils ]; </ins> configurePhase = '' runHook preConfigure export HOME=$(mktemp -d) <del> yarn config --offline set yarn-offline-mirror $offlineCache fixup_yarn_lock yarn.lock </del> <ins> yarn config --offline set yarn-offline-mirror ${finalAttrs.offlineCache} fixup-yarn-lock yarn.lock </ins> yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive <del> yarn config --offline set yarn-offline-mirror $feOfflineCache fixup_yarn_lock redisinsight/yarn.lock </del> <ins> yarn config --offline set yarn-offline-mirror ${finalAttrs.feOfflineCache} fixup-yarn-lock redisinsight/yarn.lock </ins> yarn --offline --cwd redisinsight/ --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive <del> yarn config --offline set yarn-offline-mirror $apiOfflineCache fixup_yarn_lock redisinsight/api/yarn.lock </del> <ins> yarn config --offline set yarn-offline-mirror ${finalAttrs.apiOfflineCache} fixup-yarn-lock redisinsight/api/yarn.lock </ins> yarn --offline --cwd redisinsight/api/ --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive patchShebangs node_modules/

ln -sfv "${nodejs}/include" "$HOME/.node-gyp/${nodejs.version}" export npm_config_nodedir=${nodejs} <del> pushd redisinsight </del> # Build the sqlite3 package. <ins> pushd redisinsight </ins> npm_config_node_gyp="${buildPackages.nodejs}/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" npm rebuild --verbose --sqlite=${sqlite.dev} sqlite3 popd <ins> # Build node-sass LIBSASS_EXT=auto npm rebuild --verbose node-sass </ins> substituteInPlace redisinsight/api/config/default.ts  <del> --replace "process['resourcesPath']" ""$out/share/redisinsight""  </del> <ins> --replace-fail "process['resourcesPath']" ""$out/share/redisinsight""  # has irrelevant files rm -r resources/app </ins> runHook postConfigure ''; buildPhase = '' runHook preBuild <del> yarn config --offline set yarn-offline-mirror $offlineCache pushd node_modules/node-sass LIBSASS_EXT=auto yarn run build --offline popd </del> <ins> yarn config --offline set yarn-offline-mirror ${finalAttrs.offlineCache} </ins> yarn --offline build:prod yarn --offline electron-builder  <del> --dir ${if stdenv.isDarwin then "--macos" else "--linux"} ${if stdenv.hostPlatform.isAarch64 then "--arm64" else "--x64"}  </del> <ins> --dir  </ins> -c.electronDist=${electron}/libexec/electron  -c.electronVersion=${electron.version}

installPhase = '' runHook preInstall <del> # resources mkdir -p "$out/share/redisinsight" mkdir -p "$out/share/redisinsight/static/resources/plugins" mkdir -p "$out/share/redisinsight/default" </del> <ins> mkdir -p "$out/share/redisinsight"/{app,defaults,static/plugins,static/resources/plugins} </ins> <del> cp -r release/${if stdenv.isDarwin then "darwin-" else "linux-"}${lib.optionalString stdenv.hostPlatform.isAarch64 "arm64-"}unpacked/resources/{app.asar,app.asar.unpacked} $out/share/redisinsight/ cp -r resources/ $out/share/redisinsight </del> <ins> cp -r release/*-unpacked/{locales,resources{,.pak}} "$out/share/redisinsight/app" mv "$out/share/redisinsight/app/resources/resources" "$out/share/redisinsight" </ins> # icons <del> for icon in "$out/resources/icons/*.png"; do </del> <ins> for icon in "$out/share/redisinsight/resources/icons"/*.png; do </ins> mkdir -p "$out/share/icons/hicolor/$(basename $icon .png)/apps" ln -s "$icon" "$out/share/icons/hicolor/$(basename $icon .png)/apps/redisinsight.png" done <del> ln -s "${finalAttrs.desktopItem}/share/applications" "$out/share/applications" </del> makeWrapper '${electron}/bin/electron' "$out/bin/redisinsight"  <del> --add-flags "$out/share/redisinsight/app.asar"  </del> <ins> --add-flags "$out/share/redisinsight/app/resources/app.asar"  </ins> --add-flags "''${NIXOS_OZONE_WL:+''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"  <del> --chdir "$out/share/redisinsight"  --argv0 "$out/share/redisinsight/app.asar" </del> <ins> --set-default ELECTRON_FORCE_IS_PACKAGED 1  --inherit-argv0 </ins> runHook postInstall ''; <del> desktopItem = makeDesktopItem { name = "redisinsight"; exec = "redisinsight %u"; icon = "redisinsight"; desktopName = "RedisInsight"; genericName = "RedisInsight Redis Client"; comment = finalAttrs.meta.description; categories = [ "Development" ]; startupWMClass = "redisinsight"; }; meta = with lib; { </del> <ins> desktopItems = [ (makeDesktopItem { name = "redisinsight"; exec = "redisinsight %u"; icon = "redisinsight"; desktopName = "RedisInsight"; genericName = "RedisInsight Redis Client"; comment = finalAttrs.meta.description; categories = [ "Development" ]; startupWMClass = "redisinsight"; }) ]; meta = { </ins> description = "RedisInsight Redis client powered by Electron"; homepage = "https://github.com/RedisInsight/RedisInsight"; <del> license = licenses.sspl; maintainers = with maintainers; [ gmemstr ]; platforms = [ "x86_64-linux" ]; </del> <ins> #license = licenses.sspl; maintainers = with lib.maintainers; [ gmemstr tomasajt ]; platforms = lib.platforms.linux; </ins> }; })