-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker-init: init at v1.30.0 (#356191)
- Loading branch information
Showing
3 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2497,6 +2497,13 @@ | |
githubId = 6987136; | ||
keys = [ { fingerprint = "2C6D 37D4 6AA1 DCDA BE8D F346 43E2 CF4C 01B9 4940"; } ]; | ||
}; | ||
BastianAsmussen = { | ||
name = "Bastian Asmussen"; | ||
email = "[email protected]"; | ||
github = "BastianAsmussen"; | ||
githubId = 76102128; | ||
keys = [ { fingerprint = "3B11 7469 0893 85E7 16C2 7CD9 0FE5 A355 DBC9 2568"; } ]; | ||
}; | ||
basvandijk = { | ||
email = "[email protected]"; | ||
github = "basvandijk"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
stdenv, | ||
fetchurl, | ||
zstd, | ||
lib, | ||
}: | ||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "docker-init"; | ||
version = "v1.3.0"; | ||
tag = "157355"; | ||
|
||
src = fetchurl { | ||
url = "https://desktop.docker.com/linux/main/amd64/${finalAttrs.tag}/docker-desktop-x86_64.pkg.tar.zst"; | ||
hash = "sha256-ysZorPBmoUvTJFFKDbZgQxPamONJKcXezmMrpZSVpwY="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
zstd | ||
]; | ||
|
||
unpackPhase = '' | ||
runHook preUnpack | ||
tar --zstd -xvf $src | ||
runHook postUnpack | ||
''; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
mkdir -p $out/{bin,libexec/docker/cli-plugins} | ||
cp usr/lib/docker/cli-plugins/docker-init $out/libexec/docker/cli-plugins | ||
ln -s $out/libexec/docker/cli-plugins/docker-init $out/bin/docker-init | ||
runHook postInstall | ||
''; | ||
|
||
meta = { | ||
description = "Creates Docker-related starter files for your project"; | ||
homepage = "https://docs.docker.com/reference/cli/docker/init"; | ||
downloadPage = "https://docs.docker.com/desktop/release-notes/#4320"; | ||
mainProgram = "docker-init"; | ||
license = lib.licenses.unfree; | ||
platforms = [ "x86_64-linux" ]; | ||
badPlatforms = lib.platforms.darwin; | ||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; | ||
maintainers = with lib.maintainers; [ BastianAsmussen ]; | ||
}; | ||
}) |