pin nimble to 0.22.3 in ci and nix

This commit is contained in:
Ivan FB 2026-04-12 22:32:33 +02:00
parent 3b78afa4b1
commit 94d5ad40ac
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270
5 changed files with 30 additions and 7 deletions

View File

@ -15,7 +15,7 @@ env:
MAKEFLAGS: "-j${NPROC}"
NIMFLAGS: "--parallelBuild:${NPROC} --colors:off -d:chronicles_colors:none"
NIM_VERSION: '2.2.4'
NIMBLE_VERSION: '0.18.2'
NIMBLE_VERSION: '0.22.3'
jobs:
changes: # changes detection

View File

@ -16,7 +16,7 @@ env:
MAKEFLAGS: "-j${NPROC}"
NIMFLAGS: "--parallelBuild:${NPROC}"
NIM_VERSION: '2.2.4'
NIMBLE_VERSION: '0.18.2'
NIMBLE_VERSION: '0.22.3'
# This workflow should not run for outside contributors
# If org secrets are not available, we'll avoid building and publishing the docker image and we'll pass the workflow

View File

@ -10,7 +10,7 @@ on:
env:
NPROC: 4
NIM_VERSION: '2.2.4'
NIMBLE_VERSION: '0.18.2'
NIMBLE_VERSION: '0.22.3'
jobs:
build:

View File

@ -36,9 +36,21 @@
forAllSystems = nixpkgs.lib.genAttrs systems;
nimbleOverlay = final: prev: {
nimble = prev.nimble.overrideAttrs (_: {
version = "0.22.3";
src = prev.fetchFromGitHub {
owner = "nim-lang";
repo = "nimble";
rev = "v0.22.3";
sha256 = "sha256-f7DYpRGVUeSi6basK1lfu5AxZpMFOSJ3oYsy+urYErg=";
};
});
};
pkgsFor = system: import nixpkgs {
inherit system;
overlays = [ (import rust-overlay) ];
overlays = [ (import rust-overlay) nimbleOverlay ];
};
in {
packages = forAllSystems (system:

View File

@ -1,5 +1,17 @@
{ pkgs }:
let
nimble = pkgs.nimble.overrideAttrs (_: {
version = "0.22.3";
src = pkgs.fetchFromGitHub {
owner = "nim-lang";
repo = "nimble";
rev = "v0.22.3";
sha256 = "sha256-f7DYpRGVUeSi6basK1lfu5AxZpMFOSJ3oYsy+urYErg=";
};
});
in
pkgs.mkShell {
inputsFrom = [
pkgs.androidShell
@ -8,13 +20,12 @@ pkgs.mkShell {
pkgs.darwin.apple_sdk.frameworks.Security
];
buildInputs = with pkgs; [
buildInputs = (with pkgs; [
git
cargo
rustup
rustc
cmake
nim-2_2
nimble
];
]) ++ [ nimble ]; # nimble pinned to 0.22.3 via let binding above
}