Unverified Commit f045da15 authored by tomf's avatar tomf Committed by GitHub
Browse files

age-plugin-fido2prf: init at 0.3.0 (#499912)

parents 48b0e32c 62992673
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -5091,6 +5091,11 @@
    githubId = 9336788;
    name = "Claes Hallström";
  };
  claraphyll = {
    github = "claraphyll";
    githubId = 22559310;
    name = "Clara Rostock";
  };
  claymorwan = {
    name = "claymorwan";
    github = "claymorwan";
+37 −0
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  libfido2,
}:
buildGoModule (finalAttrs: {
  pname = "age-plugin-fido2prf";
  version = "0.3.0";

  src = fetchFromGitHub {
    owner = "FiloSottile";
    repo = "typage";
    tag = "v${finalAttrs.version}";
    hash = "sha256-JGEn1xIzfLyoCWd/aRRG08Z/OoviEyZF+tGEfcj9DXw=";
  };

  srcRoot = "${finalAttrs.src}/fido2prf/cmd/age-plugin-fido2prf";
  vendorHash = "sha256-XrgZBvNyVUhKJ87vfd9aZh6aW+JifJWUu/ggNQZKwo0=";

  ldflags = [
    "-s"
    "-w"
    "-X main.version=v${finalAttrs.version}"
  ];

  buildInputs = [ libfido2 ];

  meta = {
    description = "Age plugin to encrypt files with FIDO2 tokens in a way compatible to typage";
    homepage = "https://github.com/FiloSottile/typage/";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ claraphyll ];
    mainProgram = "age-plugin-fido2prf";
  };
  __structuredAttrs = true;
})