From f7d8c85ec2031bbebfd3044203cd7c43e917c8e5 Mon Sep 17 00:00:00 2001 From: Martin Joerg Date: Mon, 14 Oct 2024 12:51:55 +0000 Subject: [PATCH] audiobookshelf: enable nusqlite3 extension --- pkgs/by-name/au/audiobookshelf/package.nix | 4 ++-- pkgs/by-name/au/audiobookshelf/wrapper.nix | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/au/audiobookshelf/package.nix b/pkgs/by-name/au/audiobookshelf/package.nix index efa34166f093..e5b2e8b5b17e 100644 --- a/pkgs/by-name/au/audiobookshelf/package.nix +++ b/pkgs/by-name/au/audiobookshelf/package.nix @@ -6,6 +6,7 @@ buildNpmPackage, nodejs_18, ffmpeg-full, + nunicode, util-linux, python3, getopt, @@ -45,8 +46,7 @@ let inherit stdenv ffmpeg-full - pname - nodejs + nunicode getopt ; }; diff --git a/pkgs/by-name/au/audiobookshelf/wrapper.nix b/pkgs/by-name/au/audiobookshelf/wrapper.nix index 87d3358a425c..4dabeae303b1 100644 --- a/pkgs/by-name/au/audiobookshelf/wrapper.nix +++ b/pkgs/by-name/au/audiobookshelf/wrapper.nix @@ -1,4 +1,9 @@ -{ stdenv, ffmpeg-full, pname, nodejs, getopt }: '' +{ + stdenv, + ffmpeg-full, + nunicode, + getopt, +}: '' #!${stdenv.shell} port=8000 @@ -55,6 +60,7 @@ SKIP_BINARIES_CHECK=1 \ FFMPEG_PATH=${ffmpeg-full}/bin/ffmpeg \ FFPROBE_PATH=${ffmpeg-full}/bin/ffprobe \ + NUSQLITE3_PATH=${nunicode.sqlite}/lib/libnusqlite3 \ CONFIG_PATH="$config" \ METADATA_PATH="$metadata" \ PORT="$port" \