3
0
Fork 0
forked from mirrors/nixpkgs

build-support/vm/deb/deb-closure: quote generated urls

otherwise, eval fails when the experimental no-url-literals feature is activated

unquoted urls are discouraged after https://github.com/NixOS/rfcs/pull/45
This commit is contained in:
ajs124 2023-02-20 01:38:31 +01:00
parent 06365ba454
commit 3f8ad50f9a

View file

@ -156,7 +156,7 @@ foreach my $pkgName (@order) {
$cleanedName =~ s/~//g; $cleanedName =~ s/~//g;
print " (fetchurl {\n"; print " (fetchurl {\n";
print " url = $urlPrefix/$cdata->{Filename};\n"; print " url = \"$urlPrefix/$cdata->{Filename}\";\n";
print " sha256 = \"$cdata->{SHA256}\";\n"; print " sha256 = \"$cdata->{SHA256}\";\n";
print " name = \"$cleanedName\";\n" if $cleanedName ne $origName; print " name = \"$cleanedName\";\n" if $cleanedName ne $origName;
print " })\n"; print " })\n";