Merge pull request #306272 from mkg20001/fluffy

fluffychat: fix sqlite3 library missing
This commit is contained in:
Maciej Krüger 2024-04-25 19:48:45 +02:00 committed by GitHub
commit 349fa7233f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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
'';
}