Home

nur @78c5cc2c6a45336526c992b0dc10928a5d195719 - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
nur / pkgs / gomodinit / default.nix
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ buildGoModule, fetchFromGitea, lib, ... }:
buildGoModule rec {
  pname = "gomodinit";
  version = "0.1.1";

  src = fetchFromGitea {
    domain = "git.jojodev.com";
    owner = "jolheiser";
    repo = "gomodinit";
    rev = "v${version}";
    sha256 = "sha256-+9HrNqJwOcU0IYEFUHA6ShLATh6qFG/V9wIpcX8E6Cg=";
  };

  vendorSha256 = "sha256-7RMTRFHYgzQD7K5JDdjV7ABg6BpCZbQXS9gSRlm27X8=";

  ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];

  meta = with lib; {
    description = "go mod init";
    homepage = "https://git.jojodev.com/jolheiser/gomodinit";
    license = licenses.mit;
  };
}