lol
1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "ulid";
8 version = "2.1.0";
9
10 src = fetchFromGitHub {
11 owner = "oklog";
12 repo = "ulid";
13 rev = "v${version}";
14 hash = "sha256-/oQPgcO1xKbHXutxz0WPfIduShPrfH1l+7/mj8jLst8=";
15 };
16
17 vendorHash = "sha256-s1YkEwFxE1zpUUCgwOAl8i6/9HB2rcGG+4kqnixTit0=";
18
19 ldflags = [ "-s" "-w" ];
20
21 checkFlags = [
22 # skip flaky test
23 "-skip=TestMonotonicSafe"
24 ];
25
26 meta = with lib; {
27 description = "Universally Unique Lexicographically Sortable Identifier (ULID) in Go";
28 homepage = "https://github.com/oklog/ulid";
29 changelog = "https://github.com/oklog/ulid/blob/${src.rev}/CHANGELOG.md";
30 license = licenses.asl20;
31 maintainers = with maintainers; [ figsoda ];
32 mainProgram = "ulid";
33 };
34}