mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
oras: init at 0.12.0
This commit is contained in:
parent
d576772452
commit
b483ed3eda
40
pkgs/development/tools/oras/default.nix
Normal file
40
pkgs/development/tools/oras/default.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "oras";
|
||||
version = "0.12.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "oras-project";
|
||||
repo = "oras";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-6W7vmWFjULIJnOVtgSrCEKw/83W8jNSbM0AF4LZZR6U=";
|
||||
};
|
||||
vendorSha256 = "sha256-3UKsH4Jbq7G5PRwhn5lW0NR80jhmuzT9daa++v2sFWk=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/oras-project/oras/internal/version.Version=${version}"
|
||||
"-X github.com/oras-project/oras/internal/version.BuildMetadata="
|
||||
"-X github.com/oras-project/oras/internal/version.GitTreeState=clean"
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
$out/bin/oras --help
|
||||
$out/bin/oras version | grep "${version}"
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://oras.land/";
|
||||
changelog = "https://github.com/oras-project/oras/releases/tag/v${version}";
|
||||
description = "The ORAS project provides a way to push and pull OCI Artifacts to and from OCI Registries";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ jk ];
|
||||
};
|
||||
}
|
@ -19615,6 +19615,8 @@ with pkgs;
|
||||
|
||||
optparse-bash = callPackage ../development/libraries/optparse-bash { };
|
||||
|
||||
oras = callPackage ../development/tools/oras { };
|
||||
|
||||
orcania = callPackage ../development/libraries/orcania { };
|
||||
|
||||
osm-gps-map = callPackage ../development/libraries/osm-gps-map { };
|
||||
|
Loading…
Reference in New Issue
Block a user