Home

nur @d8f3a23bb92c28b9b1bb10f10d90d491820cfbbf - 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
24
25
26
27
28
29
30
31
32
33
{
  buildGoModule,
  fetchFromGitea,
  lib,
  ...
}:
buildGoModule rec {
  pname = "tmpl";
  version = "0.4.0";

  src = fetchFromGitea {
    domain = "git.jojodev.com";
    owner = "jolheiser";
    repo = "tmpl";
    rev = "v${version}";
    sha256 = "sha256-+7ovltRNhM8+STv629CC3fk9FaQDrClW6r1YcnV7Vqo=";
  };

  vendorSha256 = "sha256-PmguDbjTSz0jzj1pwUNZrO1aAFNkWSo/FAef29TjsGI=";

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

  postInstall = ''
    mkdir -p $out/share
    cp -vr ./contrib/tmpl-completions.nu $out/share/tmpl-completions.nu
  '';

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