fix nph version

This commit is contained in:
Daylin Morgan 2024-09-23 10:47:33 -05:00
parent 3a5410f68b
commit 42e9583808
Signed by: daylin
GPG key ID: 950D13E9719334AD
2 changed files with 12 additions and 6 deletions

View file

@ -6,7 +6,6 @@ let
inherit (lib) inherit (lib)
genAttrs genAttrs
pkgFromSystem pkgFromSystem
pkgsFromSystem
loadOverlays loadOverlays
; ;
@ -46,7 +45,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 { }; 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

@ -1,4 +1,7 @@
{ fetchFromGitHub, buildNimPackage }: {
fetchFromGitHub,
buildNimPackage,
}:
buildNimPackage (finalAttrs: { buildNimPackage (finalAttrs: {
pname = "nph"; pname = "nph";
version = "0.6.0"; version = "0.6.0";
@ -8,7 +11,11 @@ buildNimPackage (finalAttrs: {
rev = "v${finalAttrs.version}"; rev = "v${finalAttrs.version}";
hash = "sha256-9t5VeGsxyytGdu7+Uv/J+x6bmeB5+eQapbyp30iPxqs="; 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; doCheck = false;
} })
)