depot/third_party/nixpkgs/pkgs/by-name/al/alpine-make-rootfs/package.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

33 lines
1 KiB
Nix

{ stdenvNoCC, lib, fetchFromGitHub, makeWrapper, apk-tools, coreutils, findutils, gnugrep, gnused, gnutar, gzip, rsync, util-linux, wget
}:
stdenvNoCC.mkDerivation rec {
pname = "alpine-make-rootfs";
version = "0.7.0";
src = fetchFromGitHub {
owner = "alpinelinux";
repo = "alpine-make-rootfs";
rev = "v${version}";
hash = "sha256-B5qYQ6ah4hFZfb3S5vwgevh7aEHI3YGLoA+IyipaDck=";
};
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
makeFlags = [ "PREFIX=$(out)" ];
postInstall = ''
wrapProgram $out/bin/alpine-make-rootfs --set PATH ${lib.makeBinPath [
apk-tools coreutils findutils gnugrep gnused gnutar gzip rsync util-linux wget
]}
'';
meta = with lib; {
homepage = "https://github.com/alpinelinux/alpine-make-rootfs";
description = "Make customized Alpine Linux rootfs (base image) for containers";
mainProgram = "alpine-make-rootfs";
maintainers = with maintainers; [ danielsidhion ];
license = licenses.mit;
platforms = platforms.linux;
};
}