2021-04-12 18:23:04 +00:00
|
|
|
{ substituteAll, perl, shadow, util-linux }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
substituteAll {
|
|
|
|
name = "nixos-container";
|
|
|
|
dir = "bin";
|
|
|
|
isExecutable = true;
|
|
|
|
src = ./nixos-container.pl;
|
2021-04-12 18:23:04 +00:00
|
|
|
perl = perl.withPackages (p: [ p.FileSlurp ]);
|
2020-04-24 23:36:52 +00:00
|
|
|
su = "${shadow.su}/bin/su";
|
2020-11-24 20:58:05 +00:00
|
|
|
utillinux = util-linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2020-11-21 19:51:51 +00:00
|
|
|
t=$out/share/bash-completion/completions
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir -p $t
|
|
|
|
cp ${./nixos-container-completion.sh} $t/nixos-container
|
|
|
|
'';
|
|
|
|
}
|