undock: init at 0.10.0 (#465564)

This commit is contained in:
Wolfgang Walther
2025-12-09 21:29:48 +00:00
committed by GitHub
2 changed files with 52 additions and 0 deletions
+6
View File
@@ -18883,6 +18883,12 @@
githubId = 41154684;
name = "nokazn";
};
nolith = {
github = "nolith";
githubId = 78752;
name = "Alessio Caiazza";
matrix = "@alessio:caiazza.info";
};
nomaterials = {
email = "nomaterials@gmail.com";
github = "no-materials";
+46
View File
@@ -0,0 +1,46 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "undock";
version = "0.10.0";
src = fetchFromGitHub {
owner = "crazy-max";
repo = "undock";
tag = "v${finalAttrs.version}";
hash = "sha256-p4x8SCYLErcu0ACbWUTjZVlzF+QEoC6xS7rpsOno/yw=";
};
vendorHash = null;
tags = [
"containers_image_openpgp"
"exclude_graphdriver_btrfs"
"exclude_graphdriver_devicemapper"
];
env.CGO_ENABLED = 0;
ldflags = [
"-s"
"-w"
"-X main.version=${finalAttrs.version}"
];
postInstall = ''
mv $out/bin/cmd $out/bin/undock
'';
meta = {
description = "Extract contents of a container image in a local folder";
homepage = "https://crazymax.dev/undock/";
license = lib.licenses.mit;
mainProgram = "undock";
maintainers = with lib.maintainers; [
nolith
];
};
})