1 { stdenv, lib, fetchFromGitHub, makeWrapper
2 , apk-tools, coreutils, dosfstools, 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 = "sha256-ilXoee19Wp/tB4f/0c7vWki+dnEPYp4f/IKzkGwxdbU=";
17 nativeBuildInputs = [ makeWrapper ];
20 makeFlags = [ "PREFIX=$(out)" ];
23 wrapProgram $out/bin/alpine-make-vm-image --set PATH ${lib.makeBinPath [
24 apk-tools coreutils dosfstools 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 license = licenses.mit;
33 maintainers = with maintainers; [ wegank ];
34 platforms = platforms.unix;
35 mainProgram = "alpine-make-vm-image";