2024-02-29 20:09:43 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, git }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gittuf";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.4.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gittuf";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-BXqxVtdxUbcl2cK4kYEBZIbMCKOjPvuoTnDh8L6+mO8=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-yRUgtUeoTthxSGZ6VX/MOVeY0NUXq0Nf+XlysHqcpWw=";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
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";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Security layer for Git repositories";
|
2024-02-29 20:09:43 +00:00
|
|
|
homepage = "https://gittuf.dev";
|
|
|
|
license = licenses.asl20;
|
|
|
|
mainProgram = "gittuf";
|
|
|
|
maintainers = with maintainers; [ flandweber ];
|
|
|
|
};
|
|
|
|
}
|