1
0
Fork 0
mirror of https://github.com/daylinmorgan/oizys.git synced 2025-01-06 08:50:45 -06:00
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
modules/languages
pkgs

View file

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

View file

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

View file

@ -1,8 +1,15 @@
{
fetchFromGitHub,
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";
version = "0.6.0";
src = fetchFromGitHub {