6 , wrapperDir ? "/run/wrappers/bin" # Default for NixOS, other systems might need customization.
13 src = fetchFromGitHub {
14 owner = "genuinetools";
17 sha256 = "0r5hihzp2679ki9hr3p0f085rafy2hc8kpkdhnd4m5k4iibqib08";
23 V={newgidmap,newgidmap} \
24 substituteInPlace ./internal/unshare/unshare.c \
25 --replace "/usr/bin/$V" "${wrapperDir}/$V"
34 "noembed" # disables embedded `runc`
38 "-X github.com/genuinetools/img/version.VERSION=v${version}"
43 wrapProgram "$out/bin/img" --prefix PATH : ${lib.makeBinPath [ runc ]}
46 # Tests fail as: internal/binutils/install.go:57:15: undefined: Asset
50 description = "Standalone, daemon-less, unprivileged Dockerfile and OCI compatible container image builder. ";
52 license = licenses.mit;
53 homepage = "https://github.com/genuinetools/img";
54 maintainers = with maintainers; [ bryanasdev000 ];