2018-11-05 18:57:12 +00:00
|
|
|
{ stdenv, fetchFromGitHub, xcbuildHook, libiconv, Cocoa, ncurses, cf-private }:
|
2016-01-09 01:06:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pinentry-mac-0.9.4";
|
|
|
|
|
2017-04-12 08:59:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matthewbauer";
|
|
|
|
repo = "pinentry-mac";
|
2017-09-06 04:35:00 +01:00
|
|
|
rev = "6dfef256c8ea32d642fea847f27d800f024cf51e";
|
|
|
|
sha256 = "0g75302697gqcxyf2hyqzvcbd5pyss1bl2xvfd40wqav7dlyvj83";
|
2016-01-09 01:06:24 +00:00
|
|
|
};
|
|
|
|
|
2018-07-06 23:53:50 +01:00
|
|
|
nativeBuildInputs = [ xcbuildHook ];
|
2018-11-05 18:57:12 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libiconv Cocoa ncurses
|
|
|
|
# Needed for OBJC_CLASS_$_NSArray symbols.
|
|
|
|
cf-private
|
|
|
|
];
|
2017-04-09 10:24:16 +01:00
|
|
|
|
2016-01-09 01:06:24 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/Applications
|
2018-04-08 06:27:14 +01:00
|
|
|
mv Products/Release/pinentry-mac.app $out/Applications
|
2016-01-09 01:06:24 +00:00
|
|
|
'';
|
|
|
|
|
2016-06-17 10:27:59 +01: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 21:03:30 +01:00
|
|
|
homepage = https://github.com/GPGTools/pinentry-mac;
|
2016-01-09 01:06:24 +00:00
|
|
|
platforms = stdenv.lib.platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|