Commit 047dd257 authored by Martin Joerg's avatar Martin Joerg
Browse files

audiobookshelf: use built-in mechanism to skip binaries check

parent 3007f981
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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 ];

+1 −0
Original line number Diff line number Diff line
@@ -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" \