nph: Fix nph -v

Would previously fail with:

```shell
> nph -v
/bin/sh: git: not found
```

Now it can show 0.6.1 correctly.

Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
This commit is contained in:
Daniel Schaefer
2025-01-12 07:26:20 +08:00
parent 190c2a498e
commit a5b92a6b78
+6 -1
View File
@@ -10,10 +10,15 @@ let
nim2 = nim-2_0;
};
in
buildNimPackage' (finalAttrs: {
buildNimPackage' (finalAttrs: rec {
pname = "nph";
version = "0.6.1";
postPatch = ''
substituteInPlace src/nph.nim \
--replace-fail 'git describe --long --dirty --always --tags' "echo ${version}"
'';
src = fetchFromGitHub {
owner = "arnetheduck";
repo = "nph";