8 stdenv.mkDerivation rec {
9 pname = "discord-gamesdk";
13 url = "https://dl-game-sdk.discordapp.net/${version}/discord_game_sdk.zip";
14 hash = "sha256-83DgL9y3lHLLJ8vgL3EOVk2Tjcue64N+iuDj/UpSdLc=";
23 buildInputs = [ (stdenv.cc.cc.libgcc or null) ];
25 nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook;
29 processor = stdenv.hostPlatform.uname.processor;
30 sharedLibrary = stdenv.hostPlatform.extensions.sharedLibrary;
35 install -Dm555 lib/${processor}/discord_game_sdk${sharedLibrary} $out/lib/discord_game_sdk${sharedLibrary}
37 install -Dm444 c/discord_game_sdk.h $dev/lib/include/discord_game_sdk.h
43 homepage = "https://discord.com/developers/docs/game-sdk/sdk-starter-guide";
44 description = "Library to allow other programs to interact with the Discord desktop application";
45 license = licenses.unfree;
46 maintainers = with maintainers; [ tomodachi94 ];
47 sourceProvenance = with sourceTypes; [ binaryNativeCode ];