makeGaugePlugin: add autoPatchelfHook

The ruby plugin is dynamically linked and requires patching.

(cherry picked from commit a691eb42d9)
This commit is contained in:
Marie Ramlow
2024-07-02 11:03:02 +02:00
parent d4a22bbfc1
commit a95d369694

View File

@@ -2,6 +2,7 @@
, fetchzip
, lib
, writeScript
, autoPatchelfHook
}:
{ pname
@@ -33,6 +34,8 @@ stdenvNoCC.mkDerivation (finalAttrs: (lib.recursiveUpdate {
stripRoot = false;
};
nativeBuildInputs = [ autoPatchelfHook ];
installPhase = ''
mkdir -p "$out/share/gauge-plugins/${pname}/${finalAttrs.version}"
cp -r . "$out/share/gauge-plugins/${pname}/${finalAttrs.version}"