about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/oci-image-tool/default.nix
blob: 6d508a48901a628aa1fcc2bab73017c1dea0a949 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, fetchFromGitHub, buildGoPackage }:

buildGoPackage rec {
  name = "oci-image-tool-${version}";
  version = "1.0.0-rc1";

  goPackagePath = "github.com/opencontainers/image-tools";
  subPackages = [ "cmd/oci-image-tool" ];

  src = fetchFromGitHub {
    owner = "opencontainers";
    repo = "image-tools";
    rev = "v${version}";
    sha256 = "0c4n69smqlkf0r6khy9gbg5f810qh9g8jqsl9kibb0dyswizr14r";
  };

  meta = {
    description = "A collection of tools for working with the OCI image format specification";
    homepage = https://github.com/opencontainers/image-tools;
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ nzhang-zh ];
  };
}