Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub, makeWrapper 2, apk-tools, coreutils, e2fsprogs, findutils, gnugrep, gnused, kmod, qemu-utils 3, rsync, util-linux 4}: 5 6stdenv.mkDerivation rec { 7 pname = "alpine-make-vm-image"; 8 version = "0.11.0"; 9 10 src = fetchFromGitHub { 11 owner = "alpinelinux"; 12 repo = "alpine-make-vm-image"; 13 rev = "v${version}"; 14 sha256 = "sha256-0e1KmLzORFmPUYZMH8ERXRMnQFk+B91GhBtT5BemqYI="; 15 }; 16 17 nativeBuildInputs = [ makeWrapper ]; 18 19 dontBuild = true; 20 makeFlags = [ "PREFIX=$(out)" ]; 21 22 postInstall = '' 23 wrapProgram $out/bin/alpine-make-vm-image --set PATH ${lib.makeBinPath [ 24 apk-tools coreutils e2fsprogs findutils gnugrep gnused kmod qemu-utils 25 rsync util-linux 26 ]} 27 ''; 28 29 meta = with lib; { 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; 35 }; 36}