Commit 22beb958 authored by uku's avatar uku Committed by Artturin
Browse files

wine-discord-ipc-bridge: init at unstable-2023-08-09

parent 0725e430
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
}:

stdenv.mkDerivation {
  pname = "wine-discord-ipc-bridge";
  version = "unstable-2023-08-09";

  src = fetchFromGitHub {
    owner = "0e4ef622";
    repo = "wine-discord-ipc-bridge";
    rev = "f8198c9d52e708143301017a296f7557c4387127";
    hash = "sha256-tAknITFlG63+gI5cN9SfUIUZkbIq/MgOPoGIcvoNo4Q=";
  };

  postPatch = ''
    patchShebangs winediscordipcbridge-steam.sh
  '';

  installPhase = ''
    runHook preInstall
    mkdir -p $out/bin
    cp winediscordipcbridge.exe $out/bin
    cp winediscordipcbridge-steam.sh $out/bin
    runHook postInstall
  '';

  meta = with lib; {
    description = "Enable games running under wine to use Discord Rich Presence";
    homepage = "https://github.com/0e4ef622/wine-discord-ipc-bridge";
    license = licenses.mit;
    maintainers = [ maintainers.uku3lig ];
    mainProgram = "winediscordipcbridge";
    platforms = [ "mingw32" ];
  };
}