Skip to content

Commit a93efde

Browse files
committed
update stuff to nim 2
1 parent 5557a46 commit a93efde

5 files changed

Lines changed: 45 additions & 77 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
APP_NAME: "levelsync"
11-
NIM_VERSION: '1.6.10'
11+
NIM_VERSION: '2.0.8'
1212

1313
jobs:
1414
build:

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
env:
99
APP_NAME: 'levelsync'
10-
NIM_VERSION: '1.6.10'
10+
NIM_VERSION: '2.0.8'
1111

1212
jobs:
1313
dll:

flake.lock

Lines changed: 25 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 14 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,27 @@
22
description = "test";
33

44
inputs = {
5-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
66
flake-utils.url = "github:numtide/flake-utils";
7-
8-
nimble.url = "github:nix-community/flake-nimble";
9-
nimble.inputs.nixpkgs.follows = "nixpkgs";
107
};
118

12-
outputs = { self, flake-utils, nixpkgs, nimble }:
13-
flake-utils.lib.eachDefaultSystem (system:
14-
let
15-
someOverlay = self: super: {
16-
nimPackages = super.nimPackages.overrideScope' (nself: nsuper: {
17-
zippy = nsuper.zippy.overrideAttrs (attrs: {
18-
# nativeBuildInputs = [ super.unzip ];
19-
doCheck = false;
20-
});
21-
testutils = nsuper.testutils.overrideAttrs (attrs: {
22-
doCheck = false;
23-
});
24-
stew = nsuper.stew.overrideAttrs (attrs: {
25-
doCheck = false;
26-
});
27-
chronos = nsuper.chronos.overrideAttrs (attrs: {
28-
doCheck = false;
29-
});
30-
faststreams = nsuper.faststreams.overrideAttrs (attrs: {
31-
doCheck = false;
32-
});
33-
json_serialization = nsuper.json_serialization.overrideAttrs (attrs: {
34-
doCheck = false;
35-
});
36-
chronicles = nsuper.chronicles.overrideAttrs (attrs: {
37-
doCheck = false;
38-
});
39-
});
40-
};
41-
9+
outputs = {
10+
self,
11+
flake-utils,
12+
nixpkgs,
13+
}:
14+
flake-utils.lib.eachDefaultSystem (
15+
system: let
4216
pkgs = import nixpkgs {
4317
inherit system;
44-
overlays = [ nimble.overlay someOverlay ];
18+
overlays = [];
4519
};
46-
in
47-
rec {
20+
in {
4821
devShell = pkgs.mkShell {
49-
buildInputs = with pkgs; [
50-
nim
51-
nimPackages.yaml
52-
nimPackages.zippy
53-
nimPackages.chronicles
54-
sqlite
22+
buildInputs = [
23+
pkgs.nim2
24+
pkgs.nimble
25+
pkgs.sqlite
5526
];
5627
};
5728
}

levelsync.nimble

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ bin = @["levelsync"]
1010

1111
# Dependencies
1212

13-
requires "nim >= 1.6.4"
14-
requires "yaml >= 0.16.0"
15-
requires "zippy >= 0.9.8"
16-
requires "chronicles >= 0.10.2"
13+
requires "nim >= 2.0.8"
14+
requires "yaml >= 2.1.1"
15+
requires "zippy >= 0.10.15"
16+
requires "chronicles >= 0.10.3"

0 commit comments

Comments
 (0)