-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using nimbus build system since the codex now uses version of Nim >2. Tested with nim versions(>2) in nixpkgs but none of them work thus the removal of USE_SYSTEM_NIM and its logic. Signed-off-by: markoburcul <[email protected]>
- Loading branch information
1 parent
5917594
commit 01a7cd6
Showing
5 changed files
with
56 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ pkgs ? import <nixpkgs> { } }: | ||
|
||
let | ||
tools = pkgs.callPackage ./tools.nix {}; | ||
sourceFile = ../vendor/nimbus-build-system/vendor/Nim/koch.nim; | ||
in pkgs.fetchFromGitHub { | ||
owner = "nim-lang"; | ||
repo = "checksums"; | ||
rev = tools.findKeyValue "^ +ChecksumsStableCommit = \"([a-f0-9]+)\"$" sourceFile; | ||
# WARNING: Requires manual updates when Nim compiler version changes. | ||
hash = "sha256-Bm5iJoT2kAvcTexiLMFBa9oU5gf7d4rWjo3OiN7obWQ="; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ pkgs ? import <nixpkgs> { } }: | ||
|
||
let | ||
tools = pkgs.callPackage ./tools.nix {}; | ||
sourceFile = ../vendor/nimbus-build-system/vendor/Nim/config/build_config.txt; | ||
in pkgs.fetchFromGitHub { | ||
owner = "nim-lang"; | ||
repo = "csources_v2"; | ||
rev = tools.findKeyValue "^nim_csourcesHash=([a-f0-9]+)$" sourceFile; | ||
# WARNING: Requires manual updates when Nim compiler version changes. | ||
hash = "sha256-UCLtoxOcGYjBdvHx7A47x6FjLMi6VZqpSs65MN7fpBs="; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ pkgs ? import <nixpkgs> { } }: | ||
|
||
let | ||
tools = pkgs.callPackage ./tools.nix {}; | ||
sourceFile = ../vendor/nimbus-build-system/vendor/Nim/koch.nim; | ||
in pkgs.fetchFromGitHub { | ||
owner = "nim-lang"; | ||
repo = "nimble"; | ||
fetchSubmodules = true; | ||
rev = tools.findKeyValue "^ +NimbleStableCommit = \"([a-f0-9]+)\".+" sourceFile; | ||
# WARNING: Requires manual updates when Nim compiler version changes. | ||
hash = "sha256-Rz48sGUKZEAp+UySla+MlsOfsERekuGKw69Tm11fDz8="; | ||
} |