From 42e958380840297b4bc21a05c09b6aa83f2138d4 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 23 Sep 2024 10:47:33 -0500 Subject: [PATCH] fix nph version --- lib/default.nix | 3 +-- pkgs/nim/nph/default.nix | 15 +++++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index cd4d74b..1f39fb7 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -6,7 +6,6 @@ let inherit (lib) genAttrs pkgFromSystem - pkgsFromSystem loadOverlays ; @@ -46,7 +45,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 { }; + nph = pkgs.callPackage ../pkgs/nph { }; iso = mkIso.config.system.build.isoImage; # roc = (pkgsFromSystem pkgs.system "roc").full; } diff --git a/pkgs/nim/nph/default.nix b/pkgs/nim/nph/default.nix index 2d8f263..50ad510 100644 --- a/pkgs/nim/nph/default.nix +++ b/pkgs/nim/nph/default.nix @@ -1,4 +1,7 @@ -{ fetchFromGitHub, buildNimPackage }: +{ + fetchFromGitHub, + buildNimPackage, +}: buildNimPackage (finalAttrs: { pname = "nph"; version = "0.6.0"; @@ -8,7 +11,11 @@ buildNimPackage (finalAttrs: { rev = "v${finalAttrs.version}"; hash = "sha256-9t5VeGsxyytGdu7+Uv/J+x6bmeB5+eQapbyp30iPxqs="; }; - + # replace gorge(git...) call to for version + patchPhase = '' + runHook prePatch + sed -i 's/Version = gorge(.*/Version = """v${finalAttrs.version}\n"""/' src/nph.nim + runHook postPatch + ''; doCheck = false; -} -) +})