lol
1{ lib
2, buildDotnetModule
3, fetchFromGitHub
4, dotnetCorePackages
5, testers
6, discordchatexporter-cli
7}:
8
9buildDotnetModule rec {
10 pname = "discordchatexporter-cli";
11 version = "2.36.1";
12
13 src = fetchFromGitHub {
14 owner = "tyrrrz";
15 repo = "discordchatexporter";
16 rev = version;
17 sha256 = "svBVXny8ZsZnXG5cDPDKlR2dNhPzPOW4VGaOZkLrRNA=";
18 };
19
20 projectFile = "DiscordChatExporter.Cli/DiscordChatExporter.Cli.csproj";
21 nugetDeps = ./deps.nix;
22
23 postFixup = ''
24 ln -s $out/bin/DiscordChatExporter.Cli $out/bin/discordchatexporter-cli
25 '';
26
27 passthru = {
28 updateScript = ./updater.sh;
29 tests.version = testers.testVersion {
30 package = discordchatexporter-cli;
31 version = "v${version}";
32 };
33 };
34
35 meta = with lib; {
36 description = "A tool to export Discord chat logs to a file";
37 homepage = "https://github.com/Tyrrrz/DiscordChatExporter";
38 license = licenses.gpl3Plus;
39 changelog = "https://github.com/Tyrrrz/DiscordChatExporter/blob/${version}/Changelog.md";
40 maintainers = [ maintainers.ivar ];
41 platforms = [ "x86_64-linux" ];
42 };
43}