summary refs log tree commit diff
path: root/pkgs/tools/misc/oci-image-tool
diff options
context:
space:
mode:
authorNing Zhang <n.zhang.hp.au@gmail.com>2019-01-14 15:50:58 +1100
committerNing Zhang <n.zhang.hp.au@gmail.com>2019-01-14 15:50:58 +1100
commit2660bc201b4b7b817831a85968cb8d2366ea5207 (patch)
tree62ec657b16aaf508f987d9acf5e10ba9275a05c0 /pkgs/tools/misc/oci-image-tool
parentca0639837cfe23f176ce796b06afbeba02ae26fe (diff)
downloadnixpkgs-2660bc201b4b7b817831a85968cb8d2366ea5207.tar
nixpkgs-2660bc201b4b7b817831a85968cb8d2366ea5207.tar.gz
nixpkgs-2660bc201b4b7b817831a85968cb8d2366ea5207.tar.bz2
nixpkgs-2660bc201b4b7b817831a85968cb8d2366ea5207.tar.lz
nixpkgs-2660bc201b4b7b817831a85968cb8d2366ea5207.tar.xz
nixpkgs-2660bc201b4b7b817831a85968cb8d2366ea5207.tar.zst
nixpkgs-2660bc201b4b7b817831a85968cb8d2366ea5207.zip
oci-image-tool: init at 1.0.0-rc1
Diffstat (limited to 'pkgs/tools/misc/oci-image-tool')
-rw-r--r--pkgs/tools/misc/oci-image-tool/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/tools/misc/oci-image-tool/default.nix b/pkgs/tools/misc/oci-image-tool/default.nix
new file mode 100644
index 00000000000..6d508a48901
--- /dev/null
+++ b/pkgs/tools/misc/oci-image-tool/default.nix
@@ -0,0 +1,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 ];
+  };
+}