diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-21 15:52:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-21 15:52:34 +0200 |
commit | 2d8f58a53a457466873c1b71b7250eb3f054929c (patch) | |
tree | eb6e68f2be5d364cbb020b50da41c9f8bc2a441d /pkgs/by-name | |
parent | 8f103c99b8cc29f2f478e5fe646d611648855315 (diff) | |
parent | 6e1ab5722448765c740493b748422547cf24789e (diff) |
Merge pull request #261828 from DanielSidhion/add-alpine-make-rootfs
alpine-make-rootfs: init
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/al/alpine-make-rootfs/package.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/by-name/al/alpine-make-rootfs/package.nix b/pkgs/by-name/al/alpine-make-rootfs/package.nix new file mode 100644 index 0000000000000..1fcfc23710a5a --- /dev/null +++ b/pkgs/by-name/al/alpine-make-rootfs/package.nix @@ -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; + }; +} |