This commit is contained in:
daylin-bot 2024-11-20 17:46:49 +00:00 committed by Daylin Morgan
parent 317e2d5696
commit b6bfe83c83
3 changed files with 11 additions and 3 deletions

View file

@ -13,9 +13,10 @@ in
config = mkIfIn "nim" cfg { config = mkIfIn "nim" cfg {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
nim nim
# nimble
nimlangserver nimlangserver
(flake.pkgs "self").nimble (flake.pkgs "self").nimble
(flake.pkgs "self").nph
]; ];
}; };
} }

View file

@ -3,7 +3,7 @@ let
inherit (pkgs) python3Packages; inherit (pkgs) python3Packages;
in in
{ {
# nph = pkgs.callPackage ./nim/nph { }; # doesn't compile with 2.2.0 :/ nph = pkgs.callPackage ./nim/nph { };
# nimlangserver = pkgs.callPackage ./nim/nimlangserver { }; # nimlangserver = pkgs.callPackage ./nim/nimlangserver { };
nimble = pkgs.callPackage ./nim/nimble { }; nimble = pkgs.callPackage ./nim/nimble { };

View file

@ -1,8 +1,15 @@
{ {
fetchFromGitHub, fetchFromGitHub,
buildNimPackage, buildNimPackage,
nim-2_0,
}: }:
buildNimPackage (finalAttrs: { let
buildNimPackage' = buildNimPackage.override {
# Do not build with Nim-2.2.x.
nim2 = nim-2_0;
};
in
buildNimPackage' (finalAttrs: {
pname = "nph"; pname = "nph";
version = "0.6.0"; version = "0.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {