2016-07-19 08:13:06 +02: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 16:45:47 +01:00
|
|
|
su = "${shadow.su}/bin/su";
|
|
|
|
inherit utillinux;
|
2016-07-19 08:13:06 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
t=$out/etc/bash_completion.d
|
|
|
|
mkdir -p $t
|
|
|
|
cp ${./nixos-container-completion.sh} $t/nixos-container
|
|
|
|
'';
|
|
|
|
}
|