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