about summary refs log tree commit diff
path: root/pkgs/development/tools/skopeo
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-09-25 19:06:34 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-09-25 22:50:15 +1000
commit228b37d74e00d7af7443a2f42b23bed0c198bfa1 (patch)
treea9cc6277bb84a0d5151bdb6d30f58362468af3bc /pkgs/development/tools/skopeo
parent6b0794caa5b73704080d91aa2b16111159d1e120 (diff)
skopeo: 1.1.1 -> 1.2.0
https://github.com/containers/skopeo/releases/tag/v1.2.0
Diffstat (limited to 'pkgs/development/tools/skopeo')
-rw-r--r--pkgs/development/tools/skopeo/default.nix14
1 files changed, 5 insertions, 9 deletions
diff --git a/pkgs/development/tools/skopeo/default.nix b/pkgs/development/tools/skopeo/default.nix
index 32b9c61f5d4da..697445097489f 100644
--- a/pkgs/development/tools/skopeo/default.nix
+++ b/pkgs/development/tools/skopeo/default.nix
@@ -1,7 +1,6 @@
 { stdenv
 , buildGoModule
 , fetchFromGitHub
-, runCommand
 , gpgme
 , lvm2
 , btrfs-progs
@@ -10,18 +9,17 @@
 , installShellFiles
 , makeWrapper
 , fuse-overlayfs
-, nixosTests
 }:
 
 buildGoModule rec {
   pname = "skopeo";
-  version = "1.1.1";
+  version = "1.2.0";
 
   src = fetchFromGitHub {
     rev = "v${version}";
     owner = "containers";
     repo = "skopeo";
-    sha256 = "0wkpw8fizxjpfypflp7rs1q128dg4hadwzdvn8k41h7f8cbcb39x";
+    sha256 = "1v7k3ki10i6082r7zswblyirx6zck674y6bw3plssw4p1l2611rd";
   };
 
   outputs = [ "out" "man" ];
@@ -37,12 +35,12 @@ buildGoModule rec {
 
   buildPhase = ''
     patchShebangs .
-    make binary-local
+    make bin/skopeo docs
   '';
 
   installPhase = ''
-    make install-binary PREFIX=$out
-    make install-docs MANINSTALLDIR="$man/share/man"
+    install -Dm755 bin/skopeo -t $out/bin
+    installManPage docs/*.[1-9]
     installShellCompletion --bash completions/bash/skopeo
   '';
 
@@ -51,8 +49,6 @@ buildGoModule rec {
       --prefix PATH : ${stdenv.lib.makeBinPath [ fuse-overlayfs ]}
   '';
 
-  passthru.tests.docker-tools = nixosTests.docker-tools;
-
   meta = with stdenv.lib; {
     description = "A command line utility for various operations on container images and image repositories";
     homepage = "https://github.com/containers/skopeo";