oizys/pkgs/nim/nph/default.nix

22 lines
513 B
Nix
Raw Permalink Normal View History

2024-09-23 10:47:33 -05:00
{
fetchFromGitHub,
buildNimPackage,
}:
2024-09-13 15:09:45 -05:00
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=";
};
2024-09-23 10:47:33 -05:00
# 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
'';
2024-09-13 15:09:45 -05:00
doCheck = false;
2024-09-23 10:47:33 -05:00
})