[Backport 2.0] Updates nimble (#23643)

This commit is contained in:
Juan M Gómez
2024-06-02 14:16:04 +01:00
committed by GitHub
parent 7071e3a080
commit 8daac1b061

View File

@@ -11,9 +11,10 @@
const
# examples of possible values for repos: Head, ea82b54
NimbleStableCommit = "168416290e49023894fc26106799d6f1fc964a2d" # master
NimbleStableCommit = "f8bd7b5fa6ea7a583b411b5959b06e6b5eb23667" # master
AtlasStableCommit = "7b780811a168f3f32bff4822369dda46a7f87f9a"
ChecksumsStableCommit = "b4c73320253f78e3a265aec6d9e8feb83f97c77b"
SatStableCommit = "faf1617f44d7632ee9601ebc13887644925dcc01"
# examples of possible values for fusion: #head, #ea82b54, 1.2.3
FusionStableHash = "#372ee4313827ef9f2ea388840f7d6b46c2b1b014"
@@ -156,9 +157,11 @@ proc bundleNimbleExe(latest: bool, args: string) =
commit = commit, allowBundled = true)
cloneDependency(distDir / "nimble" / distDir, "https://github.com/nim-lang/checksums.git",
commit = ChecksumsStableCommit, allowBundled = true) # or copy it from dist?
cloneDependency(distDir / "nimble" / distDir, "https://github.com/nim-lang/sat.git",
commit = SatStableCommit, allowBundled = true)
# installer.ini expects it under $nim/bin
nimCompile("dist/nimble/src/nimble.nim",
options = "-d:release --mm:refc --noNimblePath " & args)
options = "-d:release -d:nimNimbleBootstrap --mm:refc --noNimblePath " & args)
proc bundleAtlasExe(latest: bool, args: string) =
let commit = if latest: "HEAD" else: AtlasStableCommit