blob: cf74419b8554b658f5b5430ecd3a4201f86fe7bc (
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,
source,
}:
buildGo123Module rec {
pname = "chibi";
version = source.version;
vendorHash = "sha256-nSEGkn6fhr0++9uzh/+7JHUwbj879fhs0zV2/i1AEYU=";
doCheck = false;
src = fetchFromGitHub {
owner = "CosmicPredator";
repo = "${pname}-cli";
rev = source.version;
hash = source.hash;
};
postPatch = ''
sed -i '3s/1.23.4/1.23.3/' go.mod
'';
ldflags = [
"-s"
"-w"
"-extldflags=-static"
"-X main.Version=${version}"
"-X main.Commit=${version}"
];
}
|