influxdb3: init at 0-unstable-2025-02-17 (#383186)

authored by scrumplex.net and committed by GitHub a2452630 8955e3d5

+85
+85
pkgs/by-name/in/influxdb3/package.nix
··· 1 + { 2 + lib, 3 + rustPlatform, 4 + fetchFromGitHub, 5 + protobuf, 6 + python3, 7 + rust-jemalloc-sys-unprefixed, 8 + rustc, 9 + makeWrapper, 10 + nix-update-script, 11 + }: 12 + rustPlatform.buildRustPackage { 13 + pname = "influxdb3"; 14 + version = "0-unstable-2025-02-17"; 15 + src = fetchFromGitHub { 16 + owner = "influxdata"; 17 + repo = "influxdb"; 18 + rev = "8daccb7ee8f82ffae99b25236af9645fd60e448b"; 19 + hash = "sha256-tHnLD5W3KQ1cILRHNmXAi4lvQQSBVUPxYCXmXLMLwIs="; 20 + }; 21 + 22 + useFetchCargoVendor = true; 23 + cargoHash = "sha256-KnmaIbK/2tRXjCpOLHcadIX8Od7lVDOwZ+FgE+yFE+Q="; 24 + 25 + nativeBuildInputs = [ 26 + makeWrapper 27 + protobuf 28 + rustc.llvmPackages.lld 29 + ]; 30 + 31 + buildInputs = [ 32 + rust-jemalloc-sys-unprefixed 33 + python3 34 + ]; 35 + 36 + env = { 37 + GIT_HASH = "000000000000000000000000000000000000000000000000000"; 38 + GIT_HASH_SHORT = "0000000"; 39 + PYO3_PYTHON = lib.getExe python3; 40 + }; 41 + 42 + postPatch = '' 43 + # We provide GIT_HASH and GIT_HASH_SHORT ourselves 44 + rm influxdb3_process/build.rs 45 + ''; 46 + 47 + buildNoDefaultFeatures = true; 48 + buildFeatures = [ 49 + "aws" 50 + "gcp" 51 + "azure" 52 + "jemalloc_replacing_malloc" 53 + "system-py" 54 + ]; 55 + 56 + postInstall = '' 57 + wrapProgram $out/bin/influxdb3 \ 58 + --set PYTHONHOME ${python3} \ 59 + --suffix LD_LIBRARY_PATH : ${ 60 + lib.makeLibraryPath [ 61 + rust-jemalloc-sys-unprefixed 62 + python3 63 + ] 64 + } 65 + ''; 66 + 67 + # Tests require running instance 68 + doCheck = false; 69 + 70 + passthru.updateScript = nix-update-script { 71 + # Switch to "--version-regex" "v(3.*)" once the first real release tag is added 72 + extraArgs = [ "--version=branch" ]; 73 + }; 74 + 75 + meta = { 76 + description = "Scalable datastore for metrics, events, and real-time analytics"; 77 + homepage = "https://github.com/influxdata/influxdb"; 78 + license = with lib.licenses; [ 79 + asl20 80 + mit 81 + ]; 82 + maintainers = with lib.maintainers; [ oddlama ]; 83 + mainProgram = "influxdb3"; 84 + }; 85 + }