nixpkgs/pkgs/tools/security/pinentry/mac.nix

32 lines
846 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, xcbuildHook, libiconv, Cocoa, ncurses }:
2016-01-09 01:06:24 +00:00
stdenv.mkDerivation rec {
name = "pinentry-mac-0.9.4";
src = fetchFromGitHub {
owner = "matthewbauer";
repo = "pinentry-mac";
rev = "6dfef256c8ea32d642fea847f27d800f024cf51e";
sha256 = "0g75302697gqcxyf2hyqzvcbd5pyss1bl2xvfd40wqav7dlyvj83";
2016-01-09 01:06:24 +00:00
};
nativeBuildInputs = [ xcbuildHook ];
buildInputs = [ libiconv Cocoa ncurses ];
2017-04-09 09:24:16 +00:00
2016-01-09 01:06:24 +00:00
installPhase = ''
mkdir -p $out/Applications
mv Products/Release/pinentry-mac.app $out/Applications
2016-01-09 01:06:24 +00:00
'';
passthru = {
binaryPath = "Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac";
};
2016-01-09 01:06:24 +00:00
meta = {
description = "Pinentry for GPG on Mac";
license = stdenv.lib.licenses.gpl2Plus;
homepage = https://github.com/GPGTools/pinentry-mac;
2016-01-09 01:06:24 +00:00
platforms = stdenv.lib.platforms.darwin;
};
}