-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathpackage.nix
More file actions
48 lines (39 loc) · 1.1 KB
/
package.nix
File metadata and controls
48 lines (39 loc) · 1.1 KB
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
{
lib,
flake,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule rec {
pname = "showboat";
version = "0.6.1";
src = fetchFromGitHub {
owner = "simonw";
repo = "showboat";
rev = "v${version}";
hash = "sha256-yYK6j6j7OgLABHLOSKlzNnm2AWzM2Ig76RJypBsBnkI=";
};
vendorHash = "sha256-mGKxBRU5TPgdmiSx0DHEd0Ys8gsVD/YdBfbDdSVpC3U=";
subPackages = [ "." ];
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
];
# Tests require python3 and other executors in PATH
doCheck = false;
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.category = "Utilities";
meta = with lib; {
description = "Create executable demo documents showing and proving an agent's work";
homepage = "https://github.com/simonw/showboat";
changelog = "https://github.com/simonw/showboat/releases/tag/v${version}";
license = licenses.asl20;
sourceProvenance = with sourceTypes; [ fromSource ];
maintainers = with flake.lib.maintainers; [ jfroche ];
mainProgram = "showboat";
platforms = platforms.unix;
};
}