vesktop: patch pre-built node modules

+13 -2
+13 -2
pkgs/by-name/ve/vesktop/package.nix
··· 13 , moreutils 14 , cacert 15 , nodePackages 16 , withTTS ? true 17 # Enables the use of vencord from nixpkgs instead of 18 # letting vesktop manage it's own version ··· 81 nodePackages.pnpm 82 nodePackages.nodejs 83 makeWrapper 84 ]; 85 86 patches = [ ··· 106 # using `pnpm exec` here apparently makes it ignore ELECTRON_SKIP_BINARY_DOWNLOAD 107 ./node_modules/.bin/electron-builder \ 108 --dir \ 109 -c.electronDist=${electron}/libexec/electron \ 110 -c.electronVersion=${electron.version} 111 ''; ··· 115 '' 116 runHook preInstall 117 118 - mkdir -p $out/opt/Vesktop/resources 119 - cp dist/linux-*unpacked/resources/app.asar $out/opt/Vesktop/resources 120 121 pushd build 122 ${libicns}/bin/icns2png -x icon.icns
··· 13 , moreutils 14 , cacert 15 , nodePackages 16 + , pipewire 17 + , libpulseaudio 18 + , autoPatchelfHook 19 , withTTS ? true 20 # Enables the use of vencord from nixpkgs instead of 21 # letting vesktop manage it's own version ··· 84 nodePackages.pnpm 85 nodePackages.nodejs 86 makeWrapper 87 + autoPatchelfHook 88 + ]; 89 + 90 + buildInputs = [ 91 + pipewire 92 + libpulseaudio 93 + stdenv.cc.cc.lib 94 ]; 95 96 patches = [ ··· 116 # using `pnpm exec` here apparently makes it ignore ELECTRON_SKIP_BINARY_DOWNLOAD 117 ./node_modules/.bin/electron-builder \ 118 --dir \ 119 + -c.asarUnpack="**/*.node" \ 120 -c.electronDist=${electron}/libexec/electron \ 121 -c.electronVersion=${electron.version} 122 ''; ··· 126 '' 127 runHook preInstall 128 129 + mkdir -p $out/opt/Vesktop 130 + cp -r dist/linux-*unpacked/resources $out/opt/Vesktop/ 131 132 pushd build 133 ${libicns}/bin/icns2png -x icon.icns