2020-11-24 15:29:28 +00:00
|
|
|
{ substituteAll, perlPackages, shadow, util-linux }:
|
2016-07-19 07:13:06 +01:00
|
|
|
|
|
|
|
substituteAll {
|
|
|
|
name = "nixos-container";
|
|
|
|
dir = "bin";
|
|
|
|
isExecutable = true;
|
|
|
|
src = ./nixos-container.pl;
|
2018-12-15 03:50:31 +00:00
|
|
|
perl = "${perlPackages.perl}/bin/perl -I${perlPackages.FileSlurp}/${perlPackages.perl.libPrefix}";
|
2017-03-21 15:45:47 +00:00
|
|
|
su = "${shadow.su}/bin/su";
|
2020-11-24 15:29:28 +00:00
|
|
|
utillinux = util-linux;
|
2016-07-19 07:13:06 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2020-11-12 21:22:18 +00:00
|
|
|
t=$out/share/bash-completion/completions
|
2016-07-19 07:13:06 +01:00
|
|
|
mkdir -p $t
|
|
|
|
cp ${./nixos-container-completion.sh} $t/nixos-container
|
|
|
|
'';
|
|
|
|
}
|