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
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{
2
+
lib,
3
+
buildGoModule,
4
+
fetchFromGitHub,
5
+
versionCheckHook,
6
+
nix-update-script,
7
+
}:
8
+
9
+
buildGoModule (finalAttrs: {
10
+
pname = "crictty";
11
+
version = "0.1.2";
12
+
13
+
src = fetchFromGitHub {
14
+
owner = "ashish0kumar";
15
+
repo = "crictty";
16
+
tag = "v${finalAttrs.version}";
17
+
hash = "sha256-J8I5HsG0fJyp+PEkUPvyrZm587qZ3Yz2jofCmEKGmps=";
18
+
};
19
+
20
+
vendorHash = "sha256-B5+F9WXRkJhiafC+jhzZRvHlDH9XBkHQL5kBnrPRUTk=";
21
+
22
+
ldflags = [
23
+
"-s"
24
+
"-w"
25
+
"-X main.version=${finalAttrs.version}"
26
+
];
27
+
28
+
doInstallCheck = true;
29
+
nativeInstallCheckInputs = [
30
+
versionCheckHook
31
+
];
32
+
33
+
passthru.updateScript = nix-update-script { };
34
+
35
+
meta = {
36
+
changelog = "https://github.com/ashish0kumar/crictty/releases/tag/v${finalAttrs.version}";
37
+
description = "Terminal-based cricket scorecard viewer";
38
+
homepage = "https://github.com/ashish0kumar/crictty";
39
+
license = lib.licenses.mit;
40
+
maintainers = with lib.maintainers; [ ashish0kumar ];
41
+
mainProgram = "crictty";
42
+
platforms = lib.platforms.unix;
43
+
};
44
+
})