diff --git a/pkgs/by-name/au/audiobookshelf/package.nix b/pkgs/by-name/au/audiobookshelf/package.nix index 91008472059b..efa34166f093 100644 --- a/pkgs/by-name/au/audiobookshelf/package.nix +++ b/pkgs/by-name/au/audiobookshelf/package.nix @@ -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 ]; diff --git a/pkgs/by-name/au/audiobookshelf/wrapper.nix b/pkgs/by-name/au/audiobookshelf/wrapper.nix index d8f16829ffb5..87d3358a425c 100644 --- a/pkgs/by-name/au/audiobookshelf/wrapper.nix +++ b/pkgs/by-name/au/audiobookshelf/wrapper.nix @@ -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" \