Commit a5b92a6b authored by Daniel Schaefer's avatar Daniel Schaefer
Browse files

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: default avatarDaniel Schaefer <git@danielschaefer.me>
parent 190c2a49
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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";