nixpkgs/pkgs/os-specific/darwin/smimesign/default.nix

29 lines
816 B
Nix
Raw Normal View History

2020-03-21 11:22:00 +00:00
{ buildGoModule, fetchFromGitHub, stdenv, libobjc, Security }:
2019-07-03 15:13:22 +00:00
buildGoModule rec {
pname = "smimesign";
2019-07-03 15:13:22 +00:00
version = "v0.0.13";
src = fetchFromGitHub {
owner = "github";
repo = "smimesign";
rev = version;
sha256 = "0higcg2rdz02c0n50vigg7w7bxc7wlmg1x2ygrbh3iwms5lc74vi";
};
modSha256 = "1k3gnjzblfk14y19zhlvwysx045nbw0xr5nngh7zj1wcqxhhm206";
2020-03-21 11:22:00 +00:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libobjc Security ];
2019-07-03 15:13:22 +00:00
buildFlagsArray = "-ldflags=-X main.versionString=${version}";
2020-03-21 11:22:00 +00:00
meta = with stdenv.lib; {
2019-07-03 15:13:22 +00:00
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 ];
};
}