depot/third_party/nixpkgs/pkgs/by-name/gi/gittuf/package.nix

43 lines
950 B
Nix

{
lib,
fetchFromGitHub,
buildGoModule,
git,
openssh,
}:
buildGoModule rec {
pname = "gittuf";
version = "0.7.0";
src = fetchFromGitHub {
owner = "gittuf";
repo = pname;
rev = "v${version}";
hash = "sha256-IS330rgX6nXerqbaKslq1UvPnBVezZs8Q97IQvSs4sE=";
};
vendorHash = "sha256-2EEE7M16MO0M9X0W1tPXBiKlokXMoHSJjscdjaerEjE=";
ldflags = [ "-X github.com/gittuf/gittuf/internal/version.gitVersion=${version}" ];
nativeCheckInputs = [
git
openssh
];
checkFlags = [
"-skip=TestLoadRepository"
"-skip=TestSSH"
];
postInstall = "rm $out/bin/cli"; # remove gendoc cli binary
meta = with lib; {
changelog = "https://github.com/gittuf/gittuf/blob/v${version}/CHANGELOG.md";
description = "Security layer for Git repositories";
homepage = "https://gittuf.dev";
license = licenses.asl20;
mainProgram = "gittuf";
maintainers = with maintainers; [ flandweber ];
};
}