blob: 39dd91ceb2c9cd6fb7fed6792a5c110f0a2e8685 (
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
31
32
33
34
35
36
|
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "keep-sorted";
version = "0.2.0";
src = fetchFromGitHub {
owner = "google";
repo = "keep-sorted";
rev = "v${version}";
hash = "sha256-bCV0XcwgyFTORl/RF1BS7vsM8DmU0Wox3OIEuZBrwSs=";
};
vendorHash = "sha256-yaeqfMAJbQdrqZ0uco6Y5T8vnfjlBJY4IQuGzZg3Ubw=";
CGO_ENABLED = "0";
ldfags = [ "-s" "-w" ];
checkFlags = [
# Test tries to find files using git
"-skip=^TestGoldens"
];
meta = {
changelog = "https://github.com/google/keep-sorted/releases/tag/v${version}";
description = "Language-agnostic formatter that sorts lines between two markers in a larger file";
homepage = "https://github.com/google/keep-sorted";
license = lib.licenses.asl20;
mainProgram = "keep-sorted";
maintainers = with lib.maintainers; [ katexochen ];
};
}
|