1 { stdenv, lib, fetchFromGitHub, makeWrapper
2 , apk-tools, coreutils, e2fsprogs, findutils, gnugrep, gnused, kmod, qemu-utils
6 stdenv.mkDerivation rec {
7 pname = "alpine-make-vm-image";
10 src = fetchFromGitHub {
11 owner = "alpinelinux";
12 repo = "alpine-make-vm-image";
14 sha256 = "0cjcwq957nsml06kdnnvgzki84agjfvqw3mpyiix4i4q5by91lcl";
17 nativeBuildInputs = [ makeWrapper ];
20 makeFlags = [ "PREFIX=$(out)" ];
23 wrapProgram $out/bin/alpine-make-vm-image --set PATH ${lib.makeBinPath [
24 apk-tools coreutils e2fsprogs findutils gnugrep gnused kmod qemu-utils
30 homepage = "https://github.com/alpinelinux/alpine-make-vm-image";
31 description = "Make customized Alpine Linux disk image for virtual machines";
32 maintainers = with maintainers; [ qyliss ];
33 license = licenses.mit;
34 platforms = platforms.unix;