diff options
author | Maciej Krüger <mkg20001@gmail.com> | 2024-04-23 14:27:18 +0200 |
---|---|---|
committer | Maciej Krüger <mkg20001@gmail.com> | 2024-04-23 14:41:58 +0200 |
commit | 4847eb4d4b2c26384c47a9d9aaae2a37df63bd1a (patch) | |
tree | 20b5d6d1481ed142454fd652d15858834c010b71 /pkgs/development/compilers/dart | |
parent | 52053cb75689ac56fa5365b8bb7d69617133e601 (diff) |
fluffychat: fix sqlite3 library missing
There were errors about libsqlite3.so missing, which I fixed by adding it to runtime dependencies
Diffstat (limited to 'pkgs/development/compilers/dart')
-rw-r--r-- | pkgs/development/compilers/dart/package-source-builders/default.nix | 1 | ||||
-rw-r--r-- | pkgs/development/compilers/dart/package-source-builders/sqlite3/default.nix | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/compilers/dart/package-source-builders/default.nix b/pkgs/development/compilers/dart/package-source-builders/default.nix index 38d07c40ec2a..43f4a987a2e0 100644 --- a/pkgs/development/compilers/dart/package-source-builders/default.nix +++ b/pkgs/development/compilers/dart/package-source-builders/default.nix @@ -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 { }; } diff --git a/pkgs/development/compilers/dart/package-source-builders/sqlite3/default.nix b/pkgs/development/compilers/dart/package-source-builders/sqlite3/default.nix new file mode 100644 index 000000000000..579bc1732cc4 --- /dev/null +++ b/pkgs/development/compilers/dart/package-source-builders/sqlite3/default.nix @@ -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 + ''; +} |