mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
28 lines
640 B
Nix
28 lines
640 B
Nix
{
|
|
fetchFromGitHub,
|
|
buildNimPackage,
|
|
nim-2_0,
|
|
}:
|
|
let
|
|
buildNimPackage' = buildNimPackage.override {
|
|
# Do not build with Nim-2.2.x.
|
|
nim2 = nim-2_0;
|
|
};
|
|
in
|
|
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=";
|
|
};
|
|
# 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;
|
|
})
|