From a0b46893d8fbe0438e6a6257ff0f7cedf4180cdc Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 11 Feb 2025 16:47:38 +0100 Subject: [PATCH] sqlite: fix Libs.private --- pkgs/development/libraries/sqlite/Libs.private.patch | 11 +++++++++++ pkgs/development/libraries/sqlite/default.nix | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/development/libraries/sqlite/Libs.private.patch diff --git a/pkgs/development/libraries/sqlite/Libs.private.patch b/pkgs/development/libraries/sqlite/Libs.private.patch new file mode 100644 index 000000000000..e20d7ff18cc5 --- /dev/null +++ b/pkgs/development/libraries/sqlite/Libs.private.patch @@ -0,0 +1,11 @@ +diff --git a/sqlite3.pc.in b/sqlite3.pc.in +index a9f941b..3799671 100644 +--- a/sqlite3.pc.in ++++ b/sqlite3.pc.in +@@ -9,5 +9,5 @@ Name: SQLite + Description: SQL database engine + Version: @PACKAGE_VERSION@ + Libs: -L${libdir} -lsqlite3 +-Libs.private: @LDFLAGS_MATH@ @LDFLAGS_ZLIB@ @LDFLAGS_ICU@ ++Libs.private: @LIBS@ + Cflags: -I${includedir} diff --git a/pkgs/development/libraries/sqlite/default.nix b/pkgs/development/libraries/sqlite/default.nix index 5522cab569ab..670fad6e538d 100644 --- a/pkgs/development/libraries/sqlite/default.nix +++ b/pkgs/development/libraries/sqlite/default.nix @@ -29,6 +29,13 @@ stdenv.mkDerivation rec { hash = "sha256-PcE3/NfGrLMmr2CmG5hE3RXTdzywXnqc4nbEH3E9dlo="; }; + patches = [ + # https://sqlite.org/forum/forumpost/3380558ea82c8a3e + # Can be removed with the next release. + # Test: pkgsStatic.gnupg + ./Libs.private.patch + ]; + outputs = [ "bin" "dev" "man" "doc" "out" ]; separateDebugInfo = stdenv.hostPlatform.isLinux;