nur-packages

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

default.nix (870B)


      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   preBuild = ''
     27     export HOME=$TMPDIR
     28   '';
     29 
     30   doCheck = false;
     31 
     32   meta = {
     33     description = "Custom GPG pinentry program for macOS that allows using Touch ID";
     34     homepage = "https://github.com/jorgelbg/pinentry-touchid";
     35     license = lib.licenses.asl20;
     36     maintainers = [ lib.maintainers.sikmir ];
     37     platforms = lib.platforms.darwin;
     38     skip.ci = !stdenv.isDarwin;
     39   };
     40 }