blob: 13f35f5982b824ed58cd2cd52c4abed6a0d469bf (
about) (
plain)
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
49
50
|
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "gofumpt";
version = "0.8.0";
src = fetchFromGitHub {
owner = "mvdan";
repo = "gofumpt";
rev = "v${finalAttrs.version}";
hash = "sha256-37wYYB0k8mhQq30y1oo77qW3bIqqN/K/NG1RgxK6dyI=";
};
vendorHash = "sha256-T6/xEXv8+io3XwQ2keacpYYIdTnYhTTUCojf62tTwbA=";
env.CGO_ENABLED = "0";
ldflags = [
"-s"
"-X main.version=v${finalAttrs.version}"
];
checkFlags = [
# Requires network access (Error: module lookup disabled by GOPROXY=off).
"-skip=^TestScript/diagnose$"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Stricter gofmt";
homepage = "https://github.com/mvdan/gofumpt";
changelog = "https://github.com/mvdan/gofumpt/releases/tag/v${finalAttrs.version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
rvolosatovs
katexochen
];
mainProgram = "gofumpt";
};
})
|