nur-packages

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

default.nix (765B)


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