Skip to content

Commit

Permalink
[Backport release-24.05] gauge: fix ruby and dotnet plugins, unbreak …
Browse files Browse the repository at this point in the history
…darwin (#340687)
  • Loading branch information
pbsds authored Sep 15, 2024
2 parents 5af7436 + 3f7ddec commit e621297
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/tools/gauge/plugins/dotnet/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, makeGaugePlugin
, gauge-unwrapped
, stdenv
}:

makeGaugePlugin {
Expand All @@ -11,6 +12,8 @@ makeGaugePlugin {
releasePrefix = "gauge-dotnet-";
isCrossArch = true;

buildInputs = [ stdenv.cc.cc.lib ];

meta = {
description = "Gauge plugin that lets you write tests in C#";
homepage = "https://github.com/getgauge/gauge-dotnet/";
Expand Down
3 changes: 3 additions & 0 deletions pkgs/development/tools/gauge/plugins/make-gauge-plugin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, fetchzip
, lib
, writeScript
, autoPatchelfHook
}:

{ pname
Expand Down Expand Up @@ -33,6 +34,8 @@ stdenvNoCC.mkDerivation (finalAttrs: (lib.recursiveUpdate {
stripRoot = false;
};

nativeBuildInputs = lib.optional stdenvNoCC.hostPlatform.isLinux autoPatchelfHook;

installPhase = ''
mkdir -p "$out/share/gauge-plugins/${pname}/${finalAttrs.version}"
cp -r . "$out/share/gauge-plugins/${pname}/${finalAttrs.version}"
Expand Down

0 comments on commit e621297

Please sign in to comment.