summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/smimesign/default.nix
blob: 9efa230d3b728ea57f5c8806df556f7c772dab8b (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
{ buildGoModule, fetchFromGitHub, lib }:

buildGoModule rec {
  pname = "smimesign";
  version = "v0.0.13";

  src = fetchFromGitHub {
    owner  = "github";
    repo   = "smimesign";
    rev    = version;
    sha256 = "0higcg2rdz02c0n50vigg7w7bxc7wlmg1x2ygrbh3iwms5lc74vi";
  };

  modSha256 = "1k3gnjzblfk14y19zhlvwysx045nbw0xr5nngh7zj1wcqxhhm206";

  buildFlagsArray = "-ldflags=-X main.versionString=${version}";

  meta = with lib; {
    description = "An S/MIME signing utility for macOS and Windows that is compatible with Git.";

    homepage    = https://github.com/github/smimesign;
    license     = licenses.mit;
    platforms   = platforms.darwin;
    maintainers = [ maintainers.enorris ];
  };
}