audiobookshelf: use built-in mechanism to skip binaries check

This commit is contained in:
Martin Joerg
2024-09-02 12:23:31 +00:00
parent 3007f981ee
commit 047dd2576c
2 changed files with 1 additions and 8 deletions
@@ -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" \