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)
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;
}

View file

@ -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;
}
)
})