nerdctl: 0.5.0 -> 0.6.0
- nixpkgs-fmt - add installCheckPhase - hardcode homepage - add changelog - sort meta
This commit is contained in:
parent
ad4db3f4d8
commit
1f1f14f523
@ -4,17 +4,12 @@
|
|||||||
, makeWrapper
|
, makeWrapper
|
||||||
, buildkit
|
, buildkit
|
||||||
, cni-plugins
|
, cni-plugins
|
||||||
, extraPackages ? []
|
, extraPackages ? [ ]
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
binPath = lib.makeBinPath ([
|
|
||||||
buildkit
|
|
||||||
] ++ extraPackages);
|
|
||||||
in
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "nerdctl";
|
pname = "nerdctl";
|
||||||
version = "0.5.0";
|
version = "0.6.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "AkihiroSuda";
|
owner = "AkihiroSuda";
|
||||||
@ -37,15 +32,25 @@ buildGoModule rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/nerdctl \
|
wrapProgram $out/bin/nerdctl \
|
||||||
--prefix PATH : "${binPath}" \
|
--prefix PATH : "${lib.makeBinPath ([ buildkit ] ++ extraPackages)}" \
|
||||||
--prefix CNI_PATH : "${cni-plugins}/bin"
|
--prefix CNI_PATH : "${cni-plugins}/bin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckPhase = ''
|
||||||
|
runHook preInstallCheck
|
||||||
|
$out/bin/nerdctl --help
|
||||||
|
# --version will error without containerd.sock access
|
||||||
|
$out/bin/nerdctl --help | grep "${version}"
|
||||||
|
runHook postInstallCheck
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/AkihiroSuda/nerdctl/";
|
||||||
|
changelog = "https://github.com/AkihiroSuda/nerdctl/releases/tag/v${version}";
|
||||||
description = "A Docker-compatible CLI for containerd";
|
description = "A Docker-compatible CLI for containerd";
|
||||||
homepage = src.meta.homepage;
|
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = with maintainers; [ jk ];
|
maintainers = with maintainers; [ jk ];
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user