From 0f4ede258d2bd5bd7944d1113ae4cc49ac4f41a9 Mon Sep 17 00:00:00 2001 From: jdev082 Date: Tue, 29 Oct 2024 16:17:45 -0500 Subject: [PATCH] junest: fix --version flag Signed-off-by: jdev082 --- pkgs/by-name/ju/junest/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/ju/junest/package.nix b/pkgs/by-name/ju/junest/package.nix index 10f59b82adf6..4f2d89f9f6a0 100644 --- a/pkgs/by-name/ju/junest/package.nix +++ b/pkgs/by-name/ju/junest/package.nix @@ -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 = {