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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
919 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule, git, openssh }:
buildGoModule rec {
pname = "gittuf";
version = "0.6.2";
src = fetchFromGitHub {
owner = "gittuf";
repo = pname;
rev = "v${version}";
hash = "sha256-iPaYwZUnIu9GeyY4kBhj+9gIINYx+pGSWJqPekh535g=";
};
vendorHash = "sha256-mafN+Nrr0AtfMjnXNoEIuz90kJa58pgY2vUOlv7v+TE=";
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 ];
};
}