-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdefault.nix
More file actions
50 lines (42 loc) · 983 Bytes
/
default.nix
File metadata and controls
50 lines (42 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
lib,
buildGoModule,
fetchFromGitHub,
stdenv,
glibc,
}:
buildGoModule rec {
pname = "gnparser";
version = "v1.15.0";
date = "2026-05-04";
src = lib.cleanSourceWith {
filter = name: type: let
baseName = baseNameOf (toString name);
in
!(lib.hasInfix "/vendor" name || baseName == "vendor");
src = lib.cleanSource ./.;
};
vendorHash = "sha256-Oitse5Te35Cs8Ub7ueDw60JM5p8FOsyMsZif8OQQ+uE=";
buildInputs = [
stdenv
glibc.static
];
doChecks = false;
subPackages = "gnparser";
buildFlags = ["-mod=readonly"];
ldflags = [
"-s"
"-w"
"-linkmode external"
"-extldflags"
"-static"
"-X github.com/gnames/gnparser.Version=${version}"
"-X github.com/gnames/gnparser.Build=${date}"
];
meta = with lib; {
description = "Parser for bio scientific names";
homepage = "https://github.com/gnames/gnparser";
license = licenses.mit;
maintainers = with maintainers; ["dimus"];
};
}