nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildGoModule,
3 fetchFromGitHub,
4 godini,
5 lib,
6 nix-update-script,
7 testers,
8}:
9
10buildGoModule rec {
11 pname = "godini";
12 version = "1.0.0";
13
14 src = fetchFromGitHub {
15 owner = "bilbilak";
16 repo = "godini";
17 tag = "v${version}";
18 hash = "sha256-83OAddIoJzAUXPZKGnAx8XPKrdSmtc1EIJUDmRHTU/U=";
19 };
20
21 vendorHash = "sha256-hocnLCzWN8srQcO3BMNkd2lt0m54Qe7sqAhUxVZlz1k=";
22
23 ldflags = [
24 "-s"
25 "-w"
26 "-X github.com/bilbilak/godini/config.Version=${version}"
27 ];
28
29 passthru = {
30 tests = {
31 version = testers.testVersion {
32 package = godini;
33 command = "godini --version";
34 };
35 };
36
37 updateScript = nix-update-script { };
38 };
39
40 meta = {
41 changelog = "https://github.com/bilbilak/godini/blob/main/CHANGELOG.md";
42 description = "INI Configuration Management Tool";
43 homepage = "https://github.com/bilbilak/godini";
44 license = lib.licenses.gpl3Only;
45 mainProgram = "godini";
46 maintainers = with lib.maintainers; [ _4r7if3x ];
47 platforms = with lib.platforms; unix ++ windows;
48 };
49}