about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/mustache-go/default.nix
blob: be5218cb1d3363c933f03d04093635f480b6de35 (plain) (blame)
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
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "mustache-go";
  version = "1.4.0";

  src = fetchFromGitHub {
    owner = "cbroglie";
    repo = "mustache";
    rev = "v${version}";
    fetchSubmodules = true;
    sha256 = "sha256-A7LIkidhpFmhIjiDu9KdmSIdqFNsV3N8J2QEo7yT+DE=";
  };

  vendorHash = "sha256-FYdsLcW6FYxSgixZ5US9cBPABOAVwidC3ejUNbs1lbA=";

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    homepage = "https://github.com/cbroglie/mustache";
    description = "The mustache template language in Go";
    license = [ licenses.mit ];
    maintainers = with maintainers; [ Zimmi48 ];
    mainProgram = "mustache";
  };
}