93ffb054db
GitOrigin-RevId: 6f0c00907bbd81b47052eef59f7b284926a77289
17 lines
497 B
Nix
17 lines
497 B
Nix
{ substituteAll, perlPackages, shadow, util-linux }:
|
|
|
|
substituteAll {
|
|
name = "nixos-container";
|
|
dir = "bin";
|
|
isExecutable = true;
|
|
src = ./nixos-container.pl;
|
|
perl = "${perlPackages.perl}/bin/perl -I${perlPackages.FileSlurp}/${perlPackages.perl.libPrefix}";
|
|
su = "${shadow.su}/bin/su";
|
|
utillinux = util-linux;
|
|
|
|
postInstall = ''
|
|
t=$out/share/bash-completion/completions
|
|
mkdir -p $t
|
|
cp ${./nixos-container-completion.sh} $t/nixos-container
|
|
'';
|
|
}
|