Merge pull request #261828 from DanielSidhion/add-alpine-make-rootfs

alpine-make-rootfs: init
This commit is contained in:
Weijia Wang 2023-10-21 15:52:34 +02:00 committed by GitHub
commit 2d8f58a53a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View File

@ -3877,6 +3877,12 @@
githubId = 50051176;
name = "Daniel Rolls";
};
danielsidhion = {
email = "nixpkgs@sidhion.com";
github = "DanielSidhion";
githubId = 160084;
name = "Daniel Sidhion";
};
daniyalsuri6 = {
email = "daniyal.suri@gmail.com";
github = "daniyalsuri6";

View File

@ -0,0 +1,33 @@
{ 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;
};
}