2024-04-06 22:10:15 +00:00
|
|
|
{ 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";
|
2024-06-24 22:02:16 +00:00
|
|
|
repo = "csources_v2";
|
2024-04-06 22:10:15 +00:00
|
|
|
rev = tools.findKeyValue "^nim_csourcesHash=([a-f0-9]+)$" sourceFile;
|
|
|
|
# WARNING: Requires manual updates when Nim compiler version changes.
|
2024-06-24 22:02:16 +00:00
|
|
|
hash = "sha256-UCLtoxOcGYjBdvHx7A47x6FjLMi6VZqpSs65MN7fpBs=";
|
2024-04-06 22:10:15 +00:00
|
|
|
}
|