Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildDotnetModule,
|
|
dotnetCorePackages,
|
|
fetchFromGitHub,
|
|
testers,
|
|
discordchatexporter-cli,
|
|
}:
|
|
|
|
buildDotnetModule rec {
|
|
pname = "discordchatexporter-cli";
|
|
version = "2.43.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tyrrrz";
|
|
repo = "discordchatexporter";
|
|
rev = version;
|
|
hash = "sha256-r9bvTgqKQY605BoUlysSz4WJMxn2ibNh3EhoMYCfV3c=";
|
|
};
|
|
|
|
projectFile = "DiscordChatExporter.Cli/DiscordChatExporter.Cli.csproj";
|
|
nugetDeps = ./deps.json;
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
|
dotnet-runtime = dotnetCorePackages.runtime_8_0;
|
|
|
|
postFixup = ''
|
|
ln -s $out/bin/DiscordChatExporter.Cli $out/bin/discordchatexporter-cli
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = ./updater.sh;
|
|
tests.version = testers.testVersion {
|
|
package = discordchatexporter-cli;
|
|
version = "v${version}";
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Tool to export Discord chat logs to a file";
|
|
homepage = "https://github.com/Tyrrrz/DiscordChatExporter";
|
|
license = lib.licenses.gpl3Plus;
|
|
changelog = "https://github.com/Tyrrrz/DiscordChatExporter/blob/${version}/Changelog.md";
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "discordchatexporter-cli";
|
|
};
|
|
}
|