1 { stdenvNoCC, lib, fetchFromGitHub, makeWrapper, apk-tools, coreutils, findutils, gnugrep, gnused, gnutar, gzip, rsync, util-linux, wget
3 stdenvNoCC.mkDerivation rec {
4 pname = "alpine-make-rootfs";
7 src = fetchFromGitHub {
9 repo = "alpine-make-rootfs";
11 hash = "sha256-B5qYQ6ah4hFZfb3S5vwgevh7aEHI3YGLoA+IyipaDck=";
14 nativeBuildInputs = [ makeWrapper ];
17 makeFlags = [ "PREFIX=$(out)" ];
20 wrapProgram $out/bin/alpine-make-rootfs --set PATH ${lib.makeBinPath [
21 apk-tools coreutils findutils gnugrep gnused gnutar gzip rsync util-linux wget
26 homepage = "https://github.com/alpinelinux/alpine-make-rootfs";
27 description = "Make customized Alpine Linux rootfs (base image) for containers";
28 mainProgram = "alpine-make-rootfs";
29 maintainers = with maintainers; [ danielsidhion ];
30 license = licenses.mit;
31 platforms = platforms.linux;