Home

nur @04bf865f3a1608241ddb24dd8272a8bd3c9027db - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
nur / pkgs / tmpl / 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
{ buildGoModule, fetchFromGitea, lib, ... }:
buildGoModule rec {
  pname = "tmpl";
  version = "0.3.1";

  src = fetchFromGitea {
    domain = "git.jojodev.com";
    owner = "jolheiser";
    repo = "tmpl";
    rev = "v${version}";
    sha256 = "sha256-2GThTkTSiPv4SiWmRC/acKQ7k5uqrQQRM56eOxWCg7Q=";
  };

  vendorSha256 = "sha256-PmguDbjTSz0jzj1pwUNZrO1aAFNkWSo/FAef29TjsGI=";

  ldflags = [ "-s" "-w" "-X=go.jolheiser.com/tmpl/cmd.Version=${version}" ];

  meta = with lib; {
    description = "Template automation for bootstrapping projects";
    homepage = "https://git.jojodev.com/jolheiser/tmpl";
    license = licenses.mit;
  };
}