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

buildGoModule rec {
  pname = "smimesign";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "github";
    repo = "smimesign";
    rev = "v${version}";
    hash = "sha256-W9Hj/+snx+X6l95Gt9d8DiLnBPV9npKydc/zMN9G0vQ=";
  };

  vendorHash = "sha256-wLqYUICL+gdvRCLNrA0ZNcFI4oV3Oik762q7xF115Lw=";

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

  # Fails in sandbox
  doCheck = false;

  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 ++ platforms.windows;
    maintainers = [ maintainers.enorris ];
  };
}