Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
makeWrapper,
apk-tools,
coreutils,
dosfstools,
e2fsprogs,
findutils,
gnugrep,
gnused,
kmod,
qemu-utils,
rsync,
util-linux,
}:
stdenv.mkDerivation rec {
pname = "alpine-make-vm-image";
version = "0.13.3";
src = fetchFromGitHub {
owner = "alpinelinux";
repo = "alpine-make-vm-image";
tag = "v${version}";
hash = "sha256-AIwT2JAGnMeMXUXZ0FRJthf22FvFfTTw/2LtZKPSj6g=";
};
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
makeFlags = [ "PREFIX=$(out)" ];
postInstall = ''
wrapProgram $out/bin/alpine-make-vm-image --set PATH ${
lib.makeBinPath [
apk-tools
coreutils
dosfstools
e2fsprogs
findutils
gnugrep
gnused
kmod
qemu-utils
rsync
util-linux
]
}
'';
meta = with lib; {
homepage = "https://github.com/alpinelinux/alpine-make-vm-image";
description = "Make customized Alpine Linux disk image for virtual machines";
license = licenses.mit;
maintainers = with maintainers; [ wegank ];
platforms = platforms.unix;
mainProgram = "alpine-make-vm-image";
};
}