nixpkgs/pkgs/tools/virtualization/alpine-make-vm-image/default.nix

37 lines
999 B
Nix
Raw Normal View History

2020-06-17 15:13:20 +01:00
{ stdenv, lib, fetchFromGitHub, makeWrapper
, apk-tools, coreutils, e2fsprogs, findutils, gnugrep, gnused, kmod, qemu-utils
2020-11-24 15:29:28 +00:00
, util-linux
2020-06-17 15:13:20 +01:00
}:
stdenv.mkDerivation rec {
pname = "alpine-make-vm-image";
2020-12-08 11:23:04 +00:00
version = "0.7.0";
2020-06-17 15:13:20 +01:00
src = fetchFromGitHub {
owner = "alpinelinux";
repo = "alpine-make-vm-image";
rev = "v${version}";
2020-12-08 11:23:04 +00:00
sha256 = "0cjcwq957nsml06kdnnvgzki84agjfvqw3mpyiix4i4q5by91lcl";
2020-06-17 15:13:20 +01:00
};
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
makeFlags = [ "PREFIX=$(out)" ];
postInstall = ''
wrapProgram $out/bin/alpine-make-vm-image --set PATH ${lib.makeBinPath [
apk-tools coreutils e2fsprogs findutils gnugrep gnused kmod qemu-utils
2020-11-24 15:29:28 +00:00
util-linux
2020-06-17 15:13:20 +01:00
]}
'';
meta = with lib; {
homepage = "https://github.com/alpinelinux/alpine-make-vm-image";
description = "Make customized Alpine Linux disk image for virtual machines";
maintainers = with maintainers; [ qyliss ];
license = licenses.mit;
platforms = platforms.unix;
};
}