rtg-tools: fix runtime issues

On Github runner, cat is no available in PATH.
Also, rtg-tools require a default configuration file
but the current version in nixpkgs was not writing
it.
This commit is contained in:
Alexis Praga
2026-05-19 11:28:51 +02:00
parent 31aff50659
commit 09e457603e
+3 -2
View File
@@ -52,9 +52,10 @@ stdenv.mkDerivation (finalAttrs: {
--replace-fail awk ${lib.getExe gawk} \
--replace-fail "hostname -s" "${lib.getExe hostname} -s" \
--replace-fail dirname ${lib.getExe' coreutils "dirname"} \
--replace-fail readlink ${lib.getExe' coreutils "readlink"}
--replace-fail readlink ${lib.getExe' coreutils "readlink"} \
--replace-fail cat ${lib.getExe' coreutils "cat"}
sed -i '/USER_JAVA_OPTS=$RTG_JAVA_OPTS/a mkdir -p $HOME/.config/rtg-tools' installer/rtg
sed -i '/# Now write the selection to local config/i mkdir -p $HOME/.config/rtg-tools' installer/rtg
'';
checkPhase = ''