1 { lib, stdenv, buildGoModule, fetchFromGitHub }:
7 src = fetchFromGitHub {
8 owner = "oras-project";
11 sha256 = "sha256-8QmMC4eB7WNxfEsVRUzv/gb7QmNBvcgDEENa1XxpCug=";
13 vendorSha256 = "sha256-THqrGnJnNDL6BJpRxeNLPjWB+SEUMUhiVOcJZDTM6n8=";
18 "-X github.com/oras-project/oras/internal/version.Version=${version}"
19 "-X github.com/oras-project/oras/internal/version.BuildMetadata="
20 "-X github.com/oras-project/oras/internal/version.GitTreeState=clean"
23 doInstallCheck = true;
24 installCheckPhase = ''
25 runHook preInstallCheck
28 $out/bin/oras version | grep "${version}"
30 runHook postInstallCheck
34 homepage = "https://oras.land/";
35 changelog = "https://github.com/oras-project/oras/releases/tag/v${version}";
36 description = "The ORAS project provides a way to push and pull OCI Artifacts to and from OCI Registries";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ jk ];