1 { lib, buildGoModule, fetchFromGitHub, glibc, go-md2man, installShellFiles }:
7 src = fetchFromGitHub {
11 hash = "sha256-9HiWgEtaMypLOwXJ6Xg3grLSZOQ4NInZtcvLPV51YO8=";
14 patches = [ ./glibc.patch ];
16 vendorHash = "sha256-k79TcC9voQROpJnyZ0RsqxJnBT83W5Z+D+D3HnuQGsI=";
19 substituteInPlace src/cmd/create.go --subst-var-by glibc ${glibc}
24 nativeBuildInputs = [ go-md2man installShellFiles ];
29 "-X github.com/containers/toolbox/pkg/version.currentVersion=${version}"
32 preCheck = "export PATH=$GOPATH/bin:$PATH";
37 go-md2man -in $d -out ''${d%.md}
39 installManPage doc/*.[1-9]
40 installShellCompletion --bash completion/bash/toolbox
41 install profile.d/toolbox.sh -Dt $out/share/profile.d
45 homepage = "https://containertoolbx.org";
46 changelog = "https://github.com/containers/toolbox/releases/tag/${version}";
47 description = "Tool for containerized command line environments on Linux";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ urandom ];
50 mainProgram = "toolbox";