mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
47 lines
1.3 KiB
Diff
47 lines
1.3 KiB
Diff
From bb4767f8fc413ca4cb42879a9a226fd26f10e094 Mon Sep 17 00:00:00 2001
|
|
From: Lucas Ransan <lucas@ransan.tk>
|
|
Date: Tue, 3 Aug 2021 20:39:11 +0200
|
|
Subject: [PATCH] force sqlite to be found
|
|
|
|
---
|
|
src/CMakeLists.txt | 16 +++++-----------
|
|
1 file changed, 5 insertions(+), 11 deletions(-)
|
|
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index a0f3fee..58b4d0b 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -9,7 +9,7 @@ set(INCLUDE_DIR include/)
|
|
list(FILTER sources EXCLUDE REGEX "(main|linenoise|utf8).c")
|
|
list(FILTER headers EXCLUDE REGEX "(linenoise|utf8).h")
|
|
|
|
-find_library(SQLITE_LIB SQLite3)
|
|
+find_package(SQLite3 REQUIRED)
|
|
set(THREADS)
|
|
|
|
if(DISABLE_HTTP)
|
|
@@ -20,16 +20,10 @@ else()
|
|
list(APPEND libraries curl)
|
|
endif()
|
|
|
|
-if(NOT SQLITE_LIB)
|
|
- set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
- find_package(Threads REQUIRED)
|
|
- set(THREADS Threads::Threads)
|
|
-else()
|
|
- list(FILTER sources EXCLUDE REGEX "sqlite3.c")
|
|
- list(FILTER headers EXCLUDE REGEX "sqlite3.h")
|
|
- list(APPEND libraries ${SQLITE_LIB})
|
|
- add_compile_definitions(INCLUDE_SQLITE_LIB)
|
|
-endif()
|
|
+list(FILTER sources EXCLUDE REGEX "sqlite3.c")
|
|
+list(FILTER headers EXCLUDE REGEX "sqlite3.h")
|
|
+list(APPEND libraries ${SQLite3_LIBRARIES})
|
|
+add_compile_definitions(SQLite3_INCLUDE_DIR)
|
|
|
|
if(WIN32)
|
|
# ws2_32 is required for winsock2.h to work correctly
|
|
--
|
|
2.32.0
|
|
|