Merge pull request #136919 from 0x4A6F/master-age

age: 1.0.0-rc.3 -> 1.0.0
This commit is contained in:
Jörg Thalheim
2021-09-07 02:59:45 +01:00
committed by GitHub
+17 -3
View File
@@ -2,16 +2,30 @@
buildGoModule rec {
pname = "age";
version = "1.0.0-rc.3";
vendorSha256 = "sha256-sXUbfxhPmJXO+KgV/dmWmsyV49Pb6CoJLbt50yVgEvI=";
version = "1.0.0";
vendorSha256 = "sha256-cnFDs5Qos1KHn7TqaEgmt4sSzpjZor615euwxka14mY=";
src = fetchFromGitHub {
owner = "FiloSottile";
repo = "age";
rev = "v${version}";
sha256 = "sha256-YXdCTK9/eMvcHWg7gQQiPlLWYx2OjbOJDDNdSYO09HU=";
sha256 = "sha256-MfyW8Yv8swKqA7Hl45l5Zn4wZrQmE661eHsKIywy36U=";
};
ldflags = [
"-X main.Version=${version}"
];
doInstallCheck = true;
installCheckPhase = ''
if [[ "$("$out/bin/${pname}" --version)" == "${version}" ]]; then
echo '${pname} smoke check passed'
else
echo '${pname} smoke check failed'
return 1
fi
'';
meta = with lib; {
homepage = "https://age-encryption.org/";
description = "Modern encryption tool with small explicit keys";