-
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
# Copyright 2026 Shota FUJI <pockawoooh@gmail.com>
# SPDX-License-Identifier: MIT
{
buildGoModule,
lib,
git,
}:
buildGoModule {
name = "legit";
version = "1.0.0";
src =
with lib.fileset;
toSource {
root = ./.;
fileset = unions [
./go.mod
./go.sum
./embed
(fileFilter (file: file.hasExt "go") ./.)
];
};
vendorHash = "sha256-SWMJVv7QQt4gHaPjb5Q5m20jzFMPHqa+McI26EYg6Ak=";
# Test scripts invoke system "git" command.
nativeBuildInputs = [ git ];
meta = {
mainProgram = "legit";
};
}