Merge pull request #285801 from flandweber/gittuf

gittuf: init at 0.3.0
This commit is contained in:
Nikolay Korotkiy 2024-02-10 20:54:19 +04:00 committed by GitHub
commit 415bae4722
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 38 additions and 0 deletions

View File

@ -6271,6 +6271,13 @@
fingerprint = "2F93 661D AC17 EA98 A104 F780 ECC7 55EE 583C 1672";
}];
};
flandweber = {
email = "finn@landweber.xyz";
github = "flandweber";
githubId = 110117466;
matrix = "@flandweber:envs.net";
name = "Finn Landweber";
};
fleaz = {
email = "mail@felixbreidenstein.de";
matrix = "@fleaz:rainbownerds.de";

View File

@ -0,0 +1,31 @@
{ lib, fetchFromGitHub, buildGoModule, git }:
buildGoModule rec {
pname = "gittuf";
version = "0.3.0";
src = fetchFromGitHub {
owner = "gittuf";
repo = pname;
rev = "v${version}";
hash = "sha256-lECvgagcqBS+BVD296e6WjjSCA3vI0nfLzpLTi/7N0I=";
};
vendorHash = "sha256-UKhXbZXKNtMnQe7sHBOmzzXGBHuDTYeZGKnteZirskA=";
ldflags = [ "-X github.com/gittuf/gittuf/internal/version.gitVersion=${version}" ];
nativeCheckInputs = [ git ];
checkFlags = [ "-skip=TestLoadRepository" ];
postInstall = "rm $out/bin/cli"; # remove gendoc cli binary
meta = with lib; {
changelog = "https://github.com/gittuf/gittuf/blob/v${version}/CHANGELOG.md";
description = "A security layer for Git repositories";
homepage = "https://gittuf.dev";
license = licenses.asl20;
mainProgram = "gittuf";
maintainers = with maintainers; [ flandweber ];
};
}