default.nix (823B)
1 { 2 lib, 3 stdenv, 4 buildGoModule, 5 fetchFromGitHub, 6 darwin, 7 }: 8 9 buildGoModule rec { 10 pname = "pinentry-touchid"; 11 version = "0.0.3"; 12 13 src = fetchFromGitHub { 14 owner = "jorgelbg"; 15 repo = "pinentry-touchid"; 16 rev = "v${version}"; 17 hash = "sha256-XMcJjVVAp5drLMVTShITl0v6uVazrG1/23dVerrsoj4="; 18 }; 19 20 vendorHash = "sha256-PJJoTnA9WXzH9Yv/oZfwyjjcbvJwpXxX81vpzTtXWxU="; 21 22 subPackages = [ "." ]; 23 24 buildInputs = [ darwin.apple_sdk.frameworks.LocalAuthentication ]; 25 26 doCheck = false; 27 28 meta = { 29 description = "Custom GPG pinentry program for macOS that allows using Touch ID"; 30 homepage = "https://github.com/jorgelbg/pinentry-touchid"; 31 license = lib.licenses.asl20; 32 maintainers = [ lib.maintainers.sikmir ]; 33 platforms = lib.platforms.darwin; 34 skip.ci = !stdenv.isDarwin; 35 }; 36 }