mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-27 13:14:46 +00:00
d114e6e942
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 <marko@status.im>
13 lines
440 B
Nix
13 lines
440 B
Nix
{ 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=";
|
|
}
|