2016-07-19 07:13:06 +01:00
|
|
|
{ substituteAll, perl, perlPackages, shadow, utillinux }:
|
|
|
|
|
|
|
|
substituteAll {
|
|
|
|
name = "nixos-container";
|
|
|
|
dir = "bin";
|
|
|
|
isExecutable = true;
|
|
|
|
src = ./nixos-container.pl;
|
|
|
|
perl = "${perl}/bin/perl -I${perlPackages.FileSlurp}/lib/perl5/site_perl";
|
2017-03-21 15:45:47 +00:00
|
|
|
su = "${shadow.su}/bin/su";
|
|
|
|
inherit utillinux;
|
2016-07-19 07:13:06 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
t=$out/etc/bash_completion.d
|
|
|
|
mkdir -p $t
|
|
|
|
cp ${./nixos-container-completion.sh} $t/nixos-container
|
|
|
|
'';
|
|
|
|
}
|