mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
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:
parent
52053cb756
commit
4847eb4d4b
@ -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 { };
|
||||
}
|
||||
|
@ -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
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user