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

31 lines
752 B
Nix
Raw Normal View History

2017-04-09 09:24:16 +00:00
{ fetchurl, stdenv, xcbuild }:
2016-01-09 01:06:24 +00:00
stdenv.mkDerivation rec {
name = "pinentry-mac-0.9.4";
src = fetchurl {
url = "https://github.com/GPGTools/pinentry-mac/archive/v0.9.4.tar.gz";
sha256 = "037ebb010377d3a3879ae2a832cefc4513f5c397d7d887d7b86b4e5d9a628271";
};
2017-04-09 09:24:16 +00:00
buildInputs = [ xcbuild ];
dontUseXcbuild = true;
2016-01-09 01:06:24 +00:00
installPhase = ''
mkdir -p $out/Applications
mv build/Release/pinentry-mac.app $out/Applications
'';
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";
platforms = stdenv.lib.platforms.darwin;
};
}