sqlite_orm: 1.9 -> 1.9.1 (#379250)
[NixPkgs.git] / pkgs / by-name / al / alpine-make-vm-image / package.nix
blob683ab090a0183f5a0f769a79d683af619ccdf990
2   stdenv,
3   lib,
4   fetchFromGitHub,
5   makeWrapper,
6   apk-tools,
7   coreutils,
8   dosfstools,
9   e2fsprogs,
10   findutils,
11   gnugrep,
12   gnused,
13   kmod,
14   qemu-utils,
15   rsync,
16   util-linux,
19 stdenv.mkDerivation rec {
20   pname = "alpine-make-vm-image";
21   version = "0.13.1";
23   src = fetchFromGitHub {
24     owner = "alpinelinux";
25     repo = "alpine-make-vm-image";
26     rev = "v${version}";
27     sha256 = "sha256-bm9r/zM9Em1eTBwc8tL7M6yKGpat1IDcruob0IXFUyA=";
28   };
30   nativeBuildInputs = [ makeWrapper ];
32   dontBuild = true;
33   makeFlags = [ "PREFIX=$(out)" ];
35   postInstall = ''
36     wrapProgram $out/bin/alpine-make-vm-image --set PATH ${
37       lib.makeBinPath [
38         apk-tools
39         coreutils
40         dosfstools
41         e2fsprogs
42         findutils
43         gnugrep
44         gnused
45         kmod
46         qemu-utils
47         rsync
48         util-linux
49       ]
50     }
51   '';
53   meta = with lib; {
54     homepage = "https://github.com/alpinelinux/alpine-make-vm-image";
55     description = "Make customized Alpine Linux disk image for virtual machines";
56     license = licenses.mit;
57     maintainers = with maintainers; [ wegank ];
58     platforms = platforms.unix;
59     mainProgram = "alpine-make-vm-image";
60   };