fluffychat: fix sqlite3 library missing

There were errors about libsqlite3.so missing, which I fixed by adding it to runtime dependencies
This commit is contained in:
Maciej Krüger 2024-04-23 14:27:18 +02:00
parent 52053cb756
commit 4847eb4d4b
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F
2 changed files with 31 additions and 0 deletions

View File

@ -6,5 +6,6 @@
matrix = callPackage ./matrix { };
media_kit_libs_linux = callPackage ./media_kit_libs_linux { };
olm = callPackage ./olm { };
sqlite3 = callPackage ./sqlite3 { };
system_tray = callPackage ./system-tray { };
}

View File

@ -0,0 +1,30 @@
{ stdenv
, lib
, writeScript
, sqlite
}:
{ version, src, ... }:
stdenv.mkDerivation rec {
pname = "sqlite3";
inherit version src;
inherit (src) passthru;
setupHook = writeScript "${pname}-setup-hook" ''
sqliteFixupHook() {
runtimeDependencies+=('${lib.getLib sqlite}')
}
preFixupHooks+=(sqliteFixupHook)
'';
installPhase = ''
runHook preInstall
mkdir -p "$out"
ln -s '${src}'/* "$out"
runHook postInstall
'';
}