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