Commit 0f4ede25 authored by jdev082's avatar jdev082
Browse files

junest: fix --version flag



Signed-off-by: default avatarjdev082 <jdev082@jdev.eu.org>
parent c29012c1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -14,11 +14,17 @@ stdenvNoCC.mkDerivation rec {
  dontBuild = true;

  installPhase = ''
    runHook preInstall

    mkdir -p $out/bin
    mkdir -p $out/lib
    cp -r $src/bin/ $out/
    cp -r $src/lib/ $out/
    # cp -r $src/VERSION $out/
    substituteInPlace $out/bin/junest --replace-fail '$(cat "$JUNEST_BASE"/VERSION)' ${version}
    substituteInPlace $out/lib/core/common.sh --replace-fail "wget" ${lib.getExe wget}

    runHook postInstall
  '';

  meta = {