1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/tools/security/pinentry-mac/default.nix
2017-09-05 22:35:00 -05:00

33 lines
868 B
Nix

{ fetchurl, stdenv, fetchFromGitHub, xcbuild, libiconv, Cocoa, ncurses }:
stdenv.mkDerivation rec {
name = "pinentry-mac-0.9.4";
src = fetchFromGitHub {
owner = "matthewbauer";
repo = "pinentry-mac";
rev = "6dfef256c8ea32d642fea847f27d800f024cf51e";
sha256 = "0g75302697gqcxyf2hyqzvcbd5pyss1bl2xvfd40wqav7dlyvj83";
};
buildInputs = [ xcbuild libiconv Cocoa ncurses ];
dontUseXcbuild = true;
installPhase = ''
mkdir -p $out/Applications
mv pinentry-mac-*/Build/Products/Release/pinentry-mac.app $out/Applications
'';
passthru = {
binaryPath = "Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac";
};
meta = {
description = "Pinentry for GPG on Mac";
license = stdenv.lib.licenses.gpl2Plus;
homepage = https://github.com/GPGTools/pinentry-mac;
platforms = stdenv.lib.platforms.darwin;
};
}