blob: ef07179fc634ab3569581c0e45067497d49febcf (
plain) (
blame)
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
|
{
buildGo123Module,
fetchFromGitHub,
yae,
}:
buildGo123Module rec {
pname = "chibi";
version = yae.chibi-cli.version;
vendorHash = "sha256-gM5qn60DSsd66rjbG5a50QE7gvewg/7hvCiJ34nAPpw=";
doCheck = false;
src = fetchFromGitHub {
owner = "CosmicPredator";
repo = "${pname}-cli";
rev = yae.chibi-cli.version;
hash = yae.chibi-cli.hash;
};
postPatch = ''
sed -i '3s/1\...\../1\.23\.0/' go.mod
'';
ldflags = [
"-s"
"-w"
"-extldflags=-static"
"-X main.Version=${version}"
"-X main.Commit=${version}"
];
}
|