nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (904B)


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