mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
8c28836074
Co-authored-by: Nikolay Korotkiy <sikmir@disroot.org>
32 lines
888 B
Nix
32 lines
888 B
Nix
{ 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 ];
|
|
};
|
|
}
|