tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
crictty: init at 0.1.2
Ashish Kumar
9 months ago
1649ea3c
f7bfc6d3
+44
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
cr
crictty
package.nix
+44
pkgs/by-name/cr/crictty/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
buildGoModule,
4
4
+
fetchFromGitHub,
5
5
+
versionCheckHook,
6
6
+
nix-update-script,
7
7
+
}:
8
8
+
9
9
+
buildGoModule (finalAttrs: {
10
10
+
pname = "crictty";
11
11
+
version = "0.1.2";
12
12
+
13
13
+
src = fetchFromGitHub {
14
14
+
owner = "ashish0kumar";
15
15
+
repo = "crictty";
16
16
+
tag = "v${finalAttrs.version}";
17
17
+
hash = "sha256-J8I5HsG0fJyp+PEkUPvyrZm587qZ3Yz2jofCmEKGmps=";
18
18
+
};
19
19
+
20
20
+
vendorHash = "sha256-B5+F9WXRkJhiafC+jhzZRvHlDH9XBkHQL5kBnrPRUTk=";
21
21
+
22
22
+
ldflags = [
23
23
+
"-s"
24
24
+
"-w"
25
25
+
"-X main.version=${finalAttrs.version}"
26
26
+
];
27
27
+
28
28
+
doInstallCheck = true;
29
29
+
nativeInstallCheckInputs = [
30
30
+
versionCheckHook
31
31
+
];
32
32
+
33
33
+
passthru.updateScript = nix-update-script { };
34
34
+
35
35
+
meta = {
36
36
+
changelog = "https://github.com/ashish0kumar/crictty/releases/tag/v${finalAttrs.version}";
37
37
+
description = "Terminal-based cricket scorecard viewer";
38
38
+
homepage = "https://github.com/ashish0kumar/crictty";
39
39
+
license = lib.licenses.mit;
40
40
+
maintainers = with lib.maintainers; [ ashish0kumar ];
41
41
+
mainProgram = "crictty";
42
42
+
platforms = lib.platforms.unix;
43
43
+
};
44
44
+
})