lol

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

alpine-make-rootfs: init

authored by

Weijia Wang and committed by
GitHub
2d8f58a5 8f103c99

+39
+6
maintainers/maintainer-list.nix
··· 3877 3877 githubId = 50051176; 3878 3878 name = "Daniel Rolls"; 3879 3879 }; 3880 + danielsidhion = { 3881 + email = "nixpkgs@sidhion.com"; 3882 + github = "DanielSidhion"; 3883 + githubId = 160084; 3884 + name = "Daniel Sidhion"; 3885 + }; 3880 3886 daniyalsuri6 = { 3881 3887 email = "daniyal.suri@gmail.com"; 3882 3888 github = "daniyalsuri6";
+33
pkgs/by-name/al/alpine-make-rootfs/package.nix
··· 1 + { stdenvNoCC, lib, fetchFromGitHub, makeWrapper, apk-tools, coreutils, findutils, gnugrep, gnused, gnutar, gzip, rsync, util-linux, wget 2 + }: 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "alpine-make-rootfs"; 5 + version = "0.7.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "alpinelinux"; 9 + repo = "alpine-make-rootfs"; 10 + rev = "v${version}"; 11 + hash = "sha256-B5qYQ6ah4hFZfb3S5vwgevh7aEHI3YGLoA+IyipaDck="; 12 + }; 13 + 14 + nativeBuildInputs = [ makeWrapper ]; 15 + 16 + dontBuild = true; 17 + makeFlags = [ "PREFIX=$(out)" ]; 18 + 19 + postInstall = '' 20 + wrapProgram $out/bin/alpine-make-rootfs --set PATH ${lib.makeBinPath [ 21 + apk-tools coreutils findutils gnugrep gnused gnutar gzip rsync util-linux wget 22 + ]} 23 + ''; 24 + 25 + meta = with lib; { 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; 32 + }; 33 + }