oizys/pkgs/nim/nph/default.nix

29 lines
640 B
Nix
Raw Normal View History

2024-09-23 10:47:33 -05:00
{
fetchFromGitHub,
buildNimPackage,
2024-11-20 11:46:49 -06:00
nim-2_0,
2024-09-23 10:47:33 -05:00
}:
2024-11-20 11:46:49 -06:00
let
buildNimPackage' = buildNimPackage.override {
# Do not build with Nim-2.2.x.
nim2 = nim-2_0;
};
in
buildNimPackage' (finalAttrs: {
2024-09-13 15:09:45 -05:00
pname = "nph";
2025-01-08 09:25:17 -06:00
version = "0.6.1";
2024-09-13 15:09:45 -05:00
src = fetchFromGitHub {
owner = "arnetheduck";
repo = "nph";
rev = "v${finalAttrs.version}";
2025-01-08 09:25:17 -06:00
hash = "sha256-RIuggg09l7jZDg91FPrjwdoE+gCxgb7c8fEvCiwQk5U=";
2024-09-13 15:09:45 -05:00
};
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
})