summary refs log tree commit diff
path: root/pkgs/applications/networking
diff options
context:
space:
mode:
author06kellyjac <dev@j-k.io>2021-02-22 13:18:59 +0000
committer06kellyjac <dev@j-k.io>2021-02-22 13:18:59 +0000
commite544bbe6b3205386116986584f55a44ce8e6e517 (patch)
tree3820835f0d9d627f8e1fa31a1e110a6900c208ee /pkgs/applications/networking
parent8377eef0274f7945be3b195ebb99398309a55826 (diff)
downloadnixpkgs-e544bbe6b3205386116986584f55a44ce8e6e517.tar
nixpkgs-e544bbe6b3205386116986584f55a44ce8e6e517.tar.gz
nixpkgs-e544bbe6b3205386116986584f55a44ce8e6e517.tar.bz2
nixpkgs-e544bbe6b3205386116986584f55a44ce8e6e517.tar.lz
nixpkgs-e544bbe6b3205386116986584f55a44ce8e6e517.tar.xz
nixpkgs-e544bbe6b3205386116986584f55a44ce8e6e517.tar.zst
nixpkgs-e544bbe6b3205386116986584f55a44ce8e6e517.zip
nerdctl: correct shas to match 0.6.0
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r--pkgs/applications/networking/cluster/nerdctl/default.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/applications/networking/cluster/nerdctl/default.nix b/pkgs/applications/networking/cluster/nerdctl/default.nix
index d11461366b6..23f4dfe14c3 100644
--- a/pkgs/applications/networking/cluster/nerdctl/default.nix
+++ b/pkgs/applications/networking/cluster/nerdctl/default.nix
@@ -15,10 +15,10 @@ buildGoModule rec {
     owner = "AkihiroSuda";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-lSvYiTh67gK9kJls7VsayV8T3H6RzFEEKe49BOWnUBw=";
+    sha256 = "sha256-QhAN30ge0dbC9dGT1yP4o0VgrcS9+g+r6YJ07ZjPJtg=";
   };
 
-  vendorSha256 = "sha256-qywiaNoO3pI7sfyPbwWR8BLd86RvJ2xSWwCJUsm3RkM=";
+  vendorSha256 = "sha256-bX1GfKbAbdEAnW3kPNsbF/cJWufxvuhm//G88qJ3u08=";
 
   nativeBuildInputs = [ makeWrapper ];
 
@@ -30,6 +30,9 @@ buildGoModule rec {
     "-X github.com/AkihiroSuda/nerdctl/pkg/version.Revision=<unknown>"
   ];
 
+  # Many checks require a containerd socket and running nerdctl after it's built
+  doCheck = false;
+
   postInstall = ''
     wrapProgram $out/bin/nerdctl \
       --prefix PATH : "${lib.makeBinPath ([ buildkit ] ++ extraPackages)}" \
@@ -39,6 +42,9 @@ buildGoModule rec {
   doInstallCheck = true;
   installCheckPhase = ''
     runHook preInstallCheck
+    # nerdctl expects XDG_RUNTIME_DIR to be set
+    export XDG_RUNTIME_DIR=$TMPDIR
+
     $out/bin/nerdctl --help
     # --version will error without containerd.sock access
     $out/bin/nerdctl --help | grep "${version}"