audiobookshelf: use built-in mechanism to skip binaries check
This commit is contained in:
@@ -56,14 +56,6 @@ buildNpmPackage {
|
||||
inherit pname src;
|
||||
inherit (source) version;
|
||||
|
||||
postPatch = ''
|
||||
# Always skip version checks of the binary manager.
|
||||
# We provide our own binaries, and don't want to trigger downloads.
|
||||
substituteInPlace server/managers/BinaryManager.js --replace-fail \
|
||||
'if (!this.validVersions.length) return true' \
|
||||
'return true'
|
||||
'';
|
||||
|
||||
buildInputs = [ util-linux ];
|
||||
nativeBuildInputs = [ python3 ];
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
|
||||
NODE_ENV=production \
|
||||
SOURCE=nixpkgs \
|
||||
SKIP_BINARIES_CHECK=1 \
|
||||
FFMPEG_PATH=${ffmpeg-full}/bin/ffmpeg \
|
||||
FFPROBE_PATH=${ffmpeg-full}/bin/ffprobe \
|
||||
CONFIG_PATH="$config" \
|
||||
|
||||
Reference in New Issue
Block a user