nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 rustPlatform, 5 fetchFromGitHub, 6 pkg-config, 7 openssl, 8 versionCheckHook, 9 nix-update-script, 10}: 11rustPlatform.buildRustPackage (finalAttrs: { 12 pname = "helix-db"; 13 version = "2.1.3"; 14 15 src = fetchFromGitHub { 16 repo = "helix-db"; 17 owner = "HelixDB"; 18 tag = "v${finalAttrs.version}"; 19 hash = "sha256-oy17xutabfTmdkyi3Ak61f4fhd65m+Cwk+1a156K2hQ="; 20 }; 21 22 cargoHash = "sha256-KrrbQwxhqtO8ISq7WWSo67t58dOuI3gS/9nesVCIq+0="; 23 24 patches = [ 25 #There are no feature yet 26 ./disable-updates.patch 27 ]; 28 29 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ]; 30 31 buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ]; 32 33 env.OPENSSL_NO_VENDOR = true; 34 35 cargoBuildFlags = [ 36 "-p" 37 "helix-cli" 38 ]; 39 40 #There are no tests 41 doCheck = false; 42 43 nativeInstallCheckInputs = [ versionCheckHook ]; 44 45 doInstallCheck = true; 46 47 passthru.updateScript = nix-update-script { }; 48 49 meta = { 50 description = "Open-source graph-vector database built from scratch in Rust"; 51 homepage = "https://github.com/HelixDB/helix-db"; 52 changelog = "https://github.com/HelixDB/helix-db/releases/tag/v${finalAttrs.version}"; 53 license = lib.licenses.agpl3Only; 54 maintainers = with lib.maintainers; [ nartsiss ]; 55 mainProgram = "helix"; 56 }; 57})