{
makeWrapper,
lib,
pkgs,
stdenv,
coreutils,
util-linux,
e2fsprogs,
parted,
apk-tools,
findutils,
patch,
pass,
sudo,
shadow,
openssh,
...
}: let
in
stdenv.mkDerivation rec {
pname = "makeimg";
version = "0.14.0";
src = pkgs.fetchFromSourcehut {
owner = "~bitfehler";
repo = "makeimg";
tag = "v${version}";
hash = "sha256-cLCLCG0+ShFazuVBG9GcvVmQNJtuMkKdGEP3QNJPTAo=";
};
dontBuild = true;
nativeBuildInputs = [makeWrapper];
installPhase = ''
install -Dm755 -t $out/bin makeimg
wrapProgram $out/bin/makeimg --set PATH ${lib.makeBinPath [
coreutils
util-linux
e2fsprogs
parted
apk-tools
findutils
patch
pass
sudo
shadow
openssh
]}
'';
}