about summary refs log tree commit diff
path: root/pkgs/tools/security/pinentry/mac.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-04-17 15:40:30 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-04-17 15:42:25 -0500
commit1592e03abaed9be050e1546fb6dd28d2436f9c39 (patch)
treed4318f6faaa2bb43d66564fa2328da22ead732fc /pkgs/tools/security/pinentry/mac.nix
parent6bd83e624c1d3478a255044704fd173ad84198fd (diff)
downloadnixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.tar
nixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.tar.gz
nixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.tar.bz2
nixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.tar.lz
nixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.tar.xz
nixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.tar.zst
nixlib-1592e03abaed9be050e1546fb6dd28d2436f9c39.zip
treewide: rename bad filenames
Most of these can easily be moved to subdirectories of other
directories. This helps reduce clutter in the main trees.
Diffstat (limited to 'pkgs/tools/security/pinentry/mac.nix')
-rw-r--r--pkgs/tools/security/pinentry/mac.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/security/pinentry/mac.nix b/pkgs/tools/security/pinentry/mac.nix
new file mode 100644
index 000000000000..e555889d1abb
--- /dev/null
+++ b/pkgs/tools/security/pinentry/mac.nix
@@ -0,0 +1,30 @@
+{ 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 ];
+
+  installPhase = ''
+    mkdir -p $out/Applications
+    mv 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;
+  };
+}