2017-04-12 07:59:54 +00:00
|
|
|
{ fetchurl, stdenv, fetchFromGitHub, xcbuild, libiconv, Cocoa, ncurses }:
|
2016-01-09 01:06:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pinentry-mac-0.9.4";
|
|
|
|
|
2017-04-12 07:59:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matthewbauer";
|
|
|
|
repo = "pinentry-mac";
|
2017-04-13 01:03:29 +00:00
|
|
|
rev = "d60aa902644a1f0126ec50e79937423a3a7c3bc4";
|
|
|
|
sha256 = "0xp4rdyj0mw6gg1z1wraggb1qlkjb5845mibrz3nj0l692da52nq";
|
2016-01-09 01:06:24 +00:00
|
|
|
};
|
|
|
|
|
2017-04-12 07:59:54 +00:00
|
|
|
buildInputs = [ xcbuild libiconv Cocoa ncurses ];
|
2017-04-09 09:24:16 +00:00
|
|
|
|
|
|
|
dontUseXcbuild = true;
|
2016-01-09 01:06:24 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/Applications
|
2017-04-12 07:59:54 +00:00
|
|
|
mv pinentry-mac-*/Build/Products/Release/pinentry-mac.app $out/Applications
|
2016-01-09 01:06:24 +00:00
|
|
|
'';
|
|
|
|
|
2016-06-17 09:27:59 +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;
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://github.com/GPGTools/pinentry-mac;
|
2016-01-09 01:06:24 +00:00
|
|
|
platforms = stdenv.lib.platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|