This commit is contained in:
Daylin Morgan 2024-09-13 15:09:45 -05:00
parent 6c5254b6ad
commit 95b208d4a6
Signed by: daylin
GPG key ID: 950D13E9719334AD
3 changed files with 28 additions and 6 deletions

View file

@ -3,7 +3,12 @@ let
lib = nixpkgs.lib.extend (import ./extended.nix inputs); lib = nixpkgs.lib.extend (import ./extended.nix inputs);
inherit (builtins) mapAttrs readDir listToAttrs; inherit (builtins) mapAttrs readDir listToAttrs;
inherit (lib) genAttrs pkgFromSystem pkgsFromSystem loadOverlays; inherit (lib)
genAttrs
pkgFromSystem
pkgsFromSystem
loadOverlays
;
inherit (import ./find-modules.nix { inherit lib; }) findModulesList; inherit (import ./find-modules.nix { inherit lib; }) findModulesList;
inherit (import ./generators.nix { inherit lib self inputs; }) mkIso mkSystem; inherit (import ./generators.nix { inherit lib self inputs; }) mkIso mkSystem;
@ -41,6 +46,7 @@ let
oizys-nim = pkgs.callPackage ../pkgs/oizys-nim { }; oizys-nim = pkgs.callPackage ../pkgs/oizys-nim { };
oizys-go = pkgs.callPackage ../pkgs/oizys { }; oizys-go = pkgs.callPackage ../pkgs/oizys { };
nimlangserver = pkgs.callPackage ../pkgs/nimlangserver { }; nimlangserver = pkgs.callPackage ../pkgs/nimlangserver { };
nph = pkgs.callPackage ../pkgs/nph { };
iso = mkIso.config.system.build.isoImage; iso = mkIso.config.system.build.isoImage;
roc = (pkgsFromSystem pkgs.system "roc").full; roc = (pkgsFromSystem pkgs.system "roc").full;
} }

View file

@ -2,21 +2,23 @@
config, config,
lib, lib,
pkgs, pkgs,
flake,
... ...
}: }:
let let
inherit (lib) mkIfIn; inherit (lib) mkIfIn;
cfg = config.oizys.languages; cfg = config.oizys.languages;
nimlangserver = pkgs.callPackage ../../pkgs/nimlangserver { };
in in
{ {
config = mkIfIn "nim" cfg { config = mkIfIn "nim" cfg {
environment.systemPackages = environment.systemPackages =
with pkgs; (with pkgs; [
[
nim nim
nimble nimble
] ])
++ [ nimlangserver ]; ++ (with (flake.pkgs "self"); [
nimlangserver
nph
]);
}; };
} }

14
pkgs/nph/default.nix Normal file
View file

@ -0,0 +1,14 @@
{ fetchFromGitHub, buildNimPackage }:
buildNimPackage (finalAttrs: {
pname = "nph";
version = "0.6.0";
src = fetchFromGitHub {
owner = "arnetheduck";
repo = "nph";
rev = "v${finalAttrs.version}";
hash = "sha256-9t5VeGsxyytGdu7+Uv/J+x6bmeB5+eQapbyp30iPxqs=";
};
doCheck = false;
}
)