commit de50b1a720be29b125fdfd669b1ab1f2011f1654
parent bc2cf97ec3df6a03e9596ea62bd187da648514cc
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 6 Sep 2026 11:42:24 +0400
Add gostac-validator
Diffstat:
1 file changed, 35 insertions(+), 0 deletions(-)
diff --git a/pkgs/by-name/go/gostac-validator/package.nix b/pkgs/by-name/go/gostac-validator/package.nix
@@ -0,0 +1,35 @@
+{
+ lib,
+ buildGoModule,
+ fetchFromGitHub,
+}:
+
+buildGoModule (finalAttrs: {
+ pname = "gostac-validator";
+ version = "0.1.2";
+
+ __structuredAttrs = true;
+
+ src = fetchFromGitHub {
+ owner = "StacLabs";
+ repo = "gostac-validator";
+ tag = "v${finalAttrs.version}";
+ hash = "sha256-arB9xrb8hzJHktX0EtdTYTkztZy6qchMjjHhmR2HhuA=";
+ };
+
+ vendorHash = "sha256-+c09dVmdcnnH+BsHJdzttI8e47kz5kLo7Cm2hyUOgTE=";
+
+ checkFlags = [ "-skip=TestValidate" ]; # requires network
+
+ postInstall = ''
+ mv $out/bin/{,stac-}cli
+ mv $out/bin/{,stac-}server
+ '';
+
+ meta = {
+ description = "A STAC validator built in Golang";
+ homepage = "https://github.com/StacLabs/gostac-validator";
+ license = lib.licenses.mit;
+ maintainers = [ lib.maintainers.sikmir ];
+ };
+})