From 6e0740fca7eb9e77d78ef158aa42d92b7467763d Mon Sep 17 00:00:00 2001 From: Steve Roques Date: Wed, 11 Mar 2026 19:45:26 +0100 Subject: [PATCH 1/4] maintainers: add cyrusknopf --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 00e0d4b59bbe..e1e668ab09aa 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -5697,6 +5697,12 @@ githubId = 217899; name = "Cyryl Płotnicki"; }; + cyrusknopf = { + email = "cyrus.knopf@gmail.com"; + github = "cyrusknopf"; + githubId = 26168196; + name = "Cyrus Knopf"; + }; cything = { name = "cy"; email = "nix@cything.io"; From 3b50dd37f66565c0fd2128cf0d3c481f9c027a04 Mon Sep 17 00:00:00 2001 From: Steve Roques Date: Wed, 11 Mar 2026 19:45:54 +0100 Subject: [PATCH 2/4] maintainers: add roquess --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index e1e668ab09aa..f75c7e814b7f 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -23214,6 +23214,12 @@ githubId = 55679162; keys = [ { fingerprint = "1401 1B63 393D 16C1 AA9C C521 8526 B757 4A53 6236"; } ]; }; + roquess = { + name = "Steve Roques"; + email = "steve.roques@gmail.com"; + github = "roquess"; + githubId = 8398054; + }; rorosen = { email = "robert.rose@mailbox.org"; github = "rorosen"; From 4827df618d29ead399a0c350a92b4623db1d52f8 Mon Sep 17 00:00:00 2001 From: Steve Roques Date: Wed, 11 Mar 2026 19:38:21 +0100 Subject: [PATCH 3/4] minio-cpp: init at 0.3.0 --- pkgs/by-name/mi/minio-cpp/package.nix | 92 +++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 pkgs/by-name/mi/minio-cpp/package.nix diff --git a/pkgs/by-name/mi/minio-cpp/package.nix b/pkgs/by-name/mi/minio-cpp/package.nix new file mode 100644 index 000000000000..bb35f243f0fe --- /dev/null +++ b/pkgs/by-name/mi/minio-cpp/package.nix @@ -0,0 +1,92 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + pkg-config, + curl, + curlpp, + inih, + openssl, + pugixml, + nlohmann_json, + zlib, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "minio-cpp"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "minio"; + repo = "minio-cpp"; + tag = "v${finalAttrs.version}"; + hash = "sha256-JKC9SYgb5+nQ3M5C6j6QLfltM+U18oaFrep4gOKPlCI="; + }; + + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail \ + 'find_package(unofficial-curlpp CONFIG REQUIRED)' \ + 'find_package(PkgConfig REQUIRED) + pkg_check_modules(CURLPP REQUIRED IMPORTED_TARGET curlpp)' \ + --replace-fail \ + 'unofficial::curlpp::curlpp' \ + 'PkgConfig::CURLPP' \ + --replace-fail \ + 'find_package(unofficial-inih CONFIG REQUIRED)' \ + 'pkg_check_modules(INIH REQUIRED IMPORTED_TARGET INIReader)' \ + --replace-fail \ + 'unofficial::inih::inireader' \ + 'PkgConfig::INIH' + + substituteInPlace miniocpp-config.cmake.in \ + --replace-fail \ + 'find_package(unofficial-curlpp CONFIG REQUIRED)' \ + 'find_package(PkgConfig REQUIRED) + pkg_check_modules(CURLPP REQUIRED IMPORTED_TARGET curlpp)' \ + --replace-fail \ + 'find_package(unofficial-inih CONFIG REQUIRED)' \ + 'pkg_check_modules(INIH REQUIRED IMPORTED_TARGET INIReader)' + + substituteInPlace miniocpp.pc.in \ + --replace-fail \ + 'libdir=''${exec_prefix}/@CMAKE_INSTALL_LIBDIR@' \ + 'libdir=@CMAKE_INSTALL_FULL_LIBDIR@' \ + --replace-fail \ + 'includedir=''${prefix}/@CMAKE_INSTALL_INCLUDEDIR@' \ + 'includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@' + ''; + + strictDeps = true; + nativeBuildInputs = [ + cmake + pkg-config + ]; + buildInputs = [ + curl + curlpp + inih + nlohmann_json + openssl + pugixml + zlib + ]; + + cmakeFlags = [ + (lib.cmakeBool "MINIO_CPP_TEST" false) + (lib.cmakeBool "MINIO_CPP_MAKE_DOC" false) + ]; + + meta = { + description = "MinIO C++ Client SDK for Amazon S3 Compatible Cloud Storage"; + homepage = "https://github.com/minio/minio-cpp"; + license = lib.licenses.asl20; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ + cyrusknopf + drupol + roquess + ]; + }; +}) From 4d2b52ef6dc14efc60d4dada81f50733c7416713 Mon Sep 17 00:00:00 2001 From: Steve Roques Date: Wed, 11 Mar 2026 19:41:33 +0100 Subject: [PATCH 4/4] turingdb: init at 1.22 --- pkgs/by-name/tu/turingdb/package.nix | 114 +++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 pkgs/by-name/tu/turingdb/package.nix diff --git a/pkgs/by-name/tu/turingdb/package.nix b/pkgs/by-name/tu/turingdb/package.nix new file mode 100644 index 000000000000..58e7ef67b7b4 --- /dev/null +++ b/pkgs/by-name/tu/turingdb/package.nix @@ -0,0 +1,114 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + pkg-config, + gitMinimal, + bison, + flex, + inih, + minio-cpp, + curl, + curlpp, + nlohmann_json, + openssl, + openblas, + pugixml, + faiss, + zlib, + llvmPackages_20, + versionCheckHook, +}: + +let + turingstdenv = if stdenv.isDarwin then llvmPackages_20.stdenv else stdenv; +in +turingstdenv.mkDerivation (finalAttrs: { + pname = "turingdb"; + version = "1.22"; + + src = fetchFromGitHub { + owner = "turing-db"; + repo = "turingdb"; + tag = "v${finalAttrs.version}"; + hash = "sha256-gG3KzEC90nLbIisBt4xnHXtz6LesqJxaviIkTrcTMG0="; + + fetchSubmodules = true; + + leaveDotGit = true; + postFetch = '' + git -C $out log -1 --format=%ct > $out/HEAD_COMMIT_TIMESTAMP + rm -rf $out/.git + ''; + }; + + postPatch = '' + substituteInPlace storage/dump/DumpConfig.h \ + --replace-fail HEAD_COMMIT_TIMESTAMP "$(cat $src/HEAD_COMMIT_TIMESTAMP)" + ''; + + strictDeps = true; + + nativeBuildInputs = [ + bison + cmake + flex + gitMinimal + pkg-config + ]; + + buildInputs = [ + curl + curlpp + faiss + inih + minio-cpp + nlohmann_json + openblas + openssl + pugixml + zlib + ] + ++ lib.optionals turingstdenv.isDarwin [ llvmPackages_20.openmp ] + ++ lib.optionals stdenv.isLinux [ stdenv.cc.cc.lib ]; + + cmakeFlags = [ + (lib.cmakeBool "NIX_BUILD" true) + (lib.cmakeFeature "CMAKE_BUILD_TYPE" "Release") + (lib.cmakeFeature "CMAKE_CXX_FLAGS" "-fopenmp") + (lib.cmakeFeature "CMAKE_EXE_LINKER_FLAGS" "-lgomp") + (lib.cmakeFeature "FLEX_INCLUDE_DIR" "${lib.getDev flex}/include") + ] + ++ lib.optionals stdenv.isDarwin [ + (lib.cmakeFeature "OpenMP_CXX_FLAGS" "-fopenmp") + (lib.cmakeFeature "OpenMP_CXX_LIB_NAMES" "omp") + (lib.cmakeFeature "OpenMP_omp_LIBRARY" "${lib.getLib llvmPackages_20.openmp}/lib/libomp.dylib") + ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + # Upstream tests require running a TuringDB server and performing + # network operations, which are incompatible with the Nix build sandbox. + doCheck = false; + + meta = { + description = "High performance in-memory column-oriented graph database engine"; + longDescription = '' + TuringDB is a high-performance in-memory column-oriented graph + database engine designed for analytical and read-intensive workloads. + ''; + homepage = "https://turingdb.ai"; + changelog = "https://github.com/turing-db/turingdb/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.bsl11; + platforms = [ + "x86_64-linux" + "aarch64-darwin" + ]; + mainProgram = "turingdb"; + maintainers = with lib.maintainers; [ + cyrusknopf + drupol + roquess + ]; + }; +})