From a95d3696941dbc623f5f59d4e45d6bc93d408ee0 Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Tue, 2 Jul 2024 11:03:02 +0200 Subject: [PATCH] makeGaugePlugin: add autoPatchelfHook The ruby plugin is dynamically linked and requires patching. (cherry picked from commit a691eb42d995b8a4f430837389f07a1993b623c7) --- pkgs/development/tools/gauge/plugins/make-gauge-plugin.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/tools/gauge/plugins/make-gauge-plugin.nix b/pkgs/development/tools/gauge/plugins/make-gauge-plugin.nix index 116effa45b14..81fbff823802 100644 --- a/pkgs/development/tools/gauge/plugins/make-gauge-plugin.nix +++ b/pkgs/development/tools/gauge/plugins/make-gauge-plugin.nix @@ -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}"