mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
buildenv: read propagated-user-env-packages line-by-line
Since 3cb745d5a6
, the format of
propagated-user-env-packages has changed and propagated packages have not been
included by buildenv, including in the system environment.
The buildenv builder is modified to read propagated-user-env-packages
line-by-line, instead of expecting all packages on one line.
This commit is contained in:
parent
ae26f291bc
commit
dce958ac39
@ -141,12 +141,11 @@ sub addPkg {
|
||||
my $propagatedFN = "$pkgDir/nix-support/propagated-user-env-packages";
|
||||
if (-e $propagatedFN) {
|
||||
open PROP, "<$propagatedFN" or die;
|
||||
my $propagated = <PROP>;
|
||||
close PROP;
|
||||
my @propagated = split ' ', $propagated;
|
||||
foreach my $p (@propagated) {
|
||||
while (my $p = <PROP>) {
|
||||
chomp $p;
|
||||
$postponed{$p} = 1 unless defined $done{$p};
|
||||
}
|
||||
close PROP;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user