13 src = fetchFromGitHub {
14 owner = "FiloSottile";
17 hash = "sha256-9ZJdrmqBj43zSvStt0r25wjSfnvitdx3GYtM3urHcaA=";
20 vendorHash = "sha256-ilRLEV7qOBZbqzg2XQi4kt0JAb/1ftT4JmahYT0zSRU=";
25 "-X main.Version=${version}"
28 nativeBuildInputs = [ installShellFiles ];
31 installManPage doc/*.1
34 doInstallCheck = true;
35 installCheckPhase = ''
36 if [[ "$("$out/bin/${pname}" --version)" == "${version}" ]]; then
37 echo '${pname} smoke check passed'
39 echo '${pname} smoke check failed'
44 # plugin test is flaky, see https://github.com/FiloSottile/age/issues/517
51 changelog = "https://github.com/FiloSottile/age/releases/tag/v${version}";
52 homepage = "https://age-encryption.org/";
53 description = "Modern encryption tool with small explicit keys";
54 license = licenses.bsd3;
56 maintainers = with maintainers; [ tazjin ];