audiobookshelf: 2.14.0 -> 2.15.0 (#348529)

This commit is contained in:
Adam C. Stephens
2024-10-14 13:24:09 -04:00
committed by GitHub
4 changed files with 90 additions and 8 deletions
+2 -2
View File
@@ -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
;
};
+5 -5
View File
@@ -1,9 +1,9 @@
{
"owner": "advplyr",
"repo": "audiobookshelf",
"rev": "cf5598aeb9b086a28e853d6a89b82a7467fd6969",
"hash": "sha256-tObC7QbdwpAlt97eXB9QzZEaQcquuST+8nC6lYEXTUM=",
"version": "2.14.0",
"depsHash": "sha256-nVsmV3Vms2S9oM7duFfgt+go1+wM2JniI8B3UFmv/TE=",
"clientDepsHash": "sha256-oaoGxcMs8XQVaRx8UO9NSThqbHuZsA4fm8OGlSiaKO0="
"rev": "80e0cac4747e61d1fbb5374ec4ac41d3499042e2",
"hash": "sha256-gwu9AvxrfW1QSgUy3Q4di1xa964ZMZpRkgdFQlit9+4=",
"version": "2.15.0",
"depsHash": "sha256-TDZUrzVcmKn4izRn8E+uf6Mh22fRsHeVm5h+wRZAX8o=",
"clientDepsHash": "sha256-7R5+Yam9Y4+bj/8wrAE25g4sivg/sw5G0pAZFGPRpMI="
}
+7 -1
View File
@@ -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" \
+76
View File
@@ -0,0 +1,76 @@
{
lib,
stdenv,
fetchFromBitbucket,
cmake,
sqlite,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nunicode";
version = "1.11";
outputs = [
"out"
"sqlite"
];
src = fetchFromBitbucket {
owner = "alekseyt";
repo = "nunicode";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-6255YdX7eYSAj0EAE4RgX1m4XDNIF/Nc4ZCvXzTxpag=";
};
postPatch = ''
# load correct SQLite extension on all platforms
substituteInPlace sqlite3/testsuite --replace-fail \
"NU='./libnusqlite3.so'" \
"NU='./libnusqlite3'"
# fix expressions using like .. escape (https://sqlite.org/lang_expr.html#like)
substituteInPlace sqlite3/tests.sql --replace-fail '\\' '\'
# install SQLite extension in a separate output
echo >>sqlite3/CMakeLists.txt \
'install(TARGETS nusqlite3 DESTINATION "${placeholder "sqlite"}/lib")'
'';
nativeBuildInputs = [
cmake
sqlite
];
# avoid name-clash on case-insensitive filesystems
cmakeBuildDir = "build-dir";
doCheck = true;
checkPhase = ''
runHook preCheck
(
echo running SQLite testsuite
cd sqlite3
RESULT=$(../../sqlite3/testsuite < ../../sqlite3/tests.sql | sqlite3)
grep <<<$RESULT FAILED && echo SQLite testsuite failed && false
echo SQLite testsuite succeeded
)
runHook postCheck
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Fast, small and portable Unicode library with SQLite extension";
homepage = "https://bitbucket.org/alekseyt/nunicode";
changelog = "https://bitbucket.org/alekseyt/nunicode/src/${finalAttrs.version}/CHANGELOG";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.mjoerg ];
platforms = lib.platforms.unix;
};
})