mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
julia.withPackages: use 4-space indentation for consistency
This commit is contained in:
parent
d51280ffba
commit
f94050dd24
@ -19,7 +19,7 @@ let
|
|||||||
input = ${lib.generators.toJSON {} packageNames}
|
input = ${lib.generators.toJSON {} packageNames}
|
||||||
|
|
||||||
if isfile("extra_package_names.txt")
|
if isfile("extra_package_names.txt")
|
||||||
append!(input, readlines("extra_package_names.txt"))
|
append!(input, readlines("extra_package_names.txt"))
|
||||||
end
|
end
|
||||||
|
|
||||||
input = unique(input)
|
input = unique(input)
|
||||||
@ -34,17 +34,17 @@ let
|
|||||||
${builtins.readFile ./resolve_packages.jl}
|
${builtins.readFile ./resolve_packages.jl}
|
||||||
|
|
||||||
open(ENV["out"], "w") do io
|
open(ENV["out"], "w") do io
|
||||||
for spec in pkgs
|
for spec in pkgs
|
||||||
println(io, "- name: " * spec.name)
|
println(io, "- name: " * spec.name)
|
||||||
println(io, " uuid: " * string(spec.uuid))
|
println(io, " uuid: " * string(spec.uuid))
|
||||||
println(io, " version: " * string(spec.version))
|
println(io, " version: " * string(spec.version))
|
||||||
if endswith(spec.name, "_jll") && haskey(deps_map, spec.uuid)
|
if endswith(spec.name, "_jll") && haskey(deps_map, spec.uuid)
|
||||||
println(io, " depends_on: ")
|
println(io, " depends_on: ")
|
||||||
for (dep_name, dep_uuid) in pairs(deps_map[spec.uuid])
|
for (dep_name, dep_uuid) in pairs(deps_map[spec.uuid])
|
||||||
println(io, " \"$(dep_name)\": \"$(dep_uuid)\"")
|
println(io, " \"$(dep_name)\": \"$(dep_uuid)\"")
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user