mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 06:00:45 -06:00
add nph
This commit is contained in:
parent
6c5254b6ad
commit
95b208d4a6
3 changed files with 28 additions and 6 deletions
|
@ -3,7 +3,12 @@ let
|
|||
lib = nixpkgs.lib.extend (import ./extended.nix inputs);
|
||||
|
||||
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 ./generators.nix { inherit lib self inputs; }) mkIso mkSystem;
|
||||
|
@ -41,6 +46,7 @@ let
|
|||
oizys-nim = pkgs.callPackage ../pkgs/oizys-nim { };
|
||||
oizys-go = pkgs.callPackage ../pkgs/oizys { };
|
||||
nimlangserver = pkgs.callPackage ../pkgs/nimlangserver { };
|
||||
nph = pkgs.callPackage ../pkgs/nph { };
|
||||
iso = mkIso.config.system.build.isoImage;
|
||||
roc = (pkgsFromSystem pkgs.system "roc").full;
|
||||
}
|
||||
|
|
|
@ -2,21 +2,23 @@
|
|||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIfIn;
|
||||
cfg = config.oizys.languages;
|
||||
nimlangserver = pkgs.callPackage ../../pkgs/nimlangserver { };
|
||||
in
|
||||
{
|
||||
config = mkIfIn "nim" cfg {
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
(with pkgs; [
|
||||
nim
|
||||
nimble
|
||||
]
|
||||
++ [ nimlangserver ];
|
||||
])
|
||||
++ (with (flake.pkgs "self"); [
|
||||
nimlangserver
|
||||
nph
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
|
14
pkgs/nph/default.nix
Normal file
14
pkgs/nph/default.nix
Normal 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;
|
||||
}
|
||||
)
|
Loading…
Reference in a new issue