tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
semtools: init at 1.2.0
Amadej Kastelic
4 months ago
fcea3563
b7b05b94
+41
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
se
semtools
package.nix
+41
pkgs/by-name/se/semtools/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
rustPlatform,
5
5
+
fetchFromGitHub,
6
6
+
nix-update-script,
7
7
+
openssl,
8
8
+
pkg-config,
9
9
+
}:
10
10
+
11
11
+
rustPlatform.buildRustPackage (finalAttrs: {
12
12
+
pname = "semtools";
13
13
+
version = "1.2.0";
14
14
+
15
15
+
src = fetchFromGitHub {
16
16
+
owner = "run-llama";
17
17
+
repo = "semtools";
18
18
+
tag = "v${finalAttrs.version}";
19
19
+
hash = "sha256-wpOKEESM3uG9m/EqWnF2uXITbrwIhwe2MSA0FN7Fu+w=";
20
20
+
};
21
21
+
22
22
+
cargoHash = "sha256-irLhwlNnB3G63WUGV2wo+LQGQgNHYzu/vb/RM/G6Fdc=";
23
23
+
24
24
+
nativeBuildInputs = [ pkg-config ];
25
25
+
buildInputs = [ openssl ];
26
26
+
27
27
+
checkFlags = lib.optionals (stdenv.hostPlatform.system == "x86_64-darwin") [
28
28
+
# https://github.com/run-llama/semtools/issues/17
29
29
+
"--skip=tests::test_search_result_context_calculation"
30
30
+
];
31
31
+
32
32
+
passthru.updateScript = nix-update-script { };
33
33
+
34
34
+
meta = {
35
35
+
description = "Semantic search and document parsing tools for the command line";
36
36
+
homepage = "https://github.com/run-llama/semtools";
37
37
+
changelog = "https://github.com/run-llama/semtools/releases/tag/v${finalAttrs.version}";
38
38
+
license = lib.licenses.mit;
39
39
+
maintainers = [ lib.maintainers.amadejkastelic ];
40
40
+
};
41
41
+
})