2019-06-19 10:53:18 -07:00
|
|
|
{ stdenv, fetchFromGitHub, xcbuildHook, libiconv, ncurses, Cocoa }:
|
2016-01-08 17:06:24 -08:00
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2016-01-08 17:06:24 -08:00
|
|
|
name = "pinentry-mac-0.9.4";
|
|
|
|
|
2017-04-12 00:59:54 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matthewbauer";
|
|
|
|
repo = "pinentry-mac";
|
2017-09-05 20:35:00 -07:00
|
|
|
rev = "6dfef256c8ea32d642fea847f27d800f024cf51e";
|
|
|
|
sha256 = "0g75302697gqcxyf2hyqzvcbd5pyss1bl2xvfd40wqav7dlyvj83";
|
2016-01-08 17:06:24 -08:00
|
|
|
};
|
|
|
|
|
2018-07-06 15:53:50 -07:00
|
|
|
nativeBuildInputs = [ xcbuildHook ];
|
2019-06-19 10:53:18 -07:00
|
|
|
buildInputs = [ libiconv ncurses Cocoa ];
|
2017-04-09 02:24:16 -07:00
|
|
|
|
2016-01-08 17:06:24 -08:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/Applications
|
2018-04-07 22:27:14 -07:00
|
|
|
mv Products/Release/pinentry-mac.app $out/Applications
|
2016-01-08 17:06:24 -08:00
|
|
|
'';
|
|
|
|
|
2016-06-17 02:27:59 -07:00
|
|
|
passthru = {
|
|
|
|
binaryPath = "Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac";
|
|
|
|
};
|
|
|
|
|
2016-01-08 17:06:24 -08:00
|
|
|
meta = {
|
|
|
|
description = "Pinentry for GPG on Mac";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/GPGTools/pinentry-mac";
|
2016-01-08 17:06:24 -08:00
|
|
|
platforms = stdenv.lib.platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|