undock: init at 0.10.0

This commit is contained in:
Alessio Caiazza
2025-11-28 09:16:47 +01:00
parent 2a44e3f2b9
commit 1f80447ba5
+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
];
};
})