lol

docker-init: init at v1.30.0 (#356191)

authored by

Pol Dellaiera and committed by
GitHub
5fb97b7a 04bf3d87

+58 -3
+7
maintainers/maintainer-list.nix
··· 2497 2497 githubId = 6987136; 2498 2498 keys = [ { fingerprint = "2C6D 37D4 6AA1 DCDA BE8D F346 43E2 CF4C 01B9 4940"; } ]; 2499 2499 }; 2500 + BastianAsmussen = { 2501 + name = "Bastian Asmussen"; 2502 + email = "bastian@asmussen.tech"; 2503 + github = "BastianAsmussen"; 2504 + githubId = 76102128; 2505 + keys = [ { fingerprint = "3B11 7469 0893 85E7 16C2 7CD9 0FE5 A355 DBC9 2568"; } ]; 2506 + }; 2500 2507 basvandijk = { 2501 2508 email = "v.dijk.bas@gmail.com"; 2502 2509 github = "basvandijk";
+4 -3
pkgs/applications/virtualization/docker/default.nix
··· 8 8 , runcRev, runcHash 9 9 , containerdRev, containerdHash 10 10 , tiniRev, tiniHash 11 - , buildxSupport ? true, composeSupport ? true, sbomSupport ? false 11 + , buildxSupport ? true, composeSupport ? true, sbomSupport ? false, initSupport ? false 12 12 # package dependencies 13 13 , stdenv, fetchFromGitHub, fetchpatch, buildGoModule 14 14 , makeWrapper, installShellFiles, pkg-config, glibc 15 15 , go-md2man, go, containerd, runc, tini, libtool 16 - , sqlite, iproute2, docker-buildx, docker-compose, docker-sbom 16 + , sqlite, iproute2, docker-buildx, docker-compose, docker-sbom, docker-init 17 17 , iptables, e2fsprogs, xz, util-linux, xfsprogs, gitMinimal 18 18 , procps, rootlesskit, slirp4netns, fuse-overlayfs, nixosTests 19 19 , clientOnly ? !stdenv.hostPlatform.isLinux, symlinkJoin ··· 185 185 186 186 plugins = lib.optional buildxSupport docker-buildx 187 187 ++ lib.optional composeSupport docker-compose 188 - ++ lib.optional sbomSupport docker-sbom; 188 + ++ lib.optional sbomSupport docker-sbom 189 + ++ lib.optional initSupport docker-init; 189 190 pluginsRef = symlinkJoin { name = "docker-plugins"; paths = plugins; }; 190 191 in 191 192 buildGoModule (lib.optionalAttrs (!clientOnly) {
+47
pkgs/by-name/do/docker-init/package.nix
··· 1 + { 2 + stdenv, 3 + fetchurl, 4 + zstd, 5 + lib, 6 + }: 7 + stdenv.mkDerivation (finalAttrs: { 8 + pname = "docker-init"; 9 + version = "v1.3.0"; 10 + tag = "157355"; 11 + 12 + src = fetchurl { 13 + url = "https://desktop.docker.com/linux/main/amd64/${finalAttrs.tag}/docker-desktop-x86_64.pkg.tar.zst"; 14 + hash = "sha256-ysZorPBmoUvTJFFKDbZgQxPamONJKcXezmMrpZSVpwY="; 15 + }; 16 + 17 + nativeBuildInputs = [ 18 + zstd 19 + ]; 20 + 21 + unpackPhase = '' 22 + runHook preUnpack 23 + tar --zstd -xvf $src 24 + runHook postUnpack 25 + ''; 26 + 27 + installPhase = '' 28 + runHook preInstall 29 + mkdir -p $out/{bin,libexec/docker/cli-plugins} 30 + 31 + cp usr/lib/docker/cli-plugins/docker-init $out/libexec/docker/cli-plugins 32 + ln -s $out/libexec/docker/cli-plugins/docker-init $out/bin/docker-init 33 + runHook postInstall 34 + ''; 35 + 36 + meta = { 37 + description = "Creates Docker-related starter files for your project"; 38 + homepage = "https://docs.docker.com/reference/cli/docker/init"; 39 + downloadPage = "https://docs.docker.com/desktop/release-notes/#4320"; 40 + mainProgram = "docker-init"; 41 + license = lib.licenses.unfree; 42 + platforms = [ "x86_64-linux" ]; 43 + badPlatforms = lib.platforms.darwin; 44 + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 45 + maintainers = with lib.maintainers; [ BastianAsmussen ]; 46 + }; 47 + })