evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / di / discordchatexporter-cli / package.nix
blob68722d2c614281b735acd669238ed454ea30c2a0
1 { lib
2 , buildDotnetModule
3 , dotnetCorePackages
4 , fetchFromGitHub
5 , testers
6 , discordchatexporter-cli
7 }:
9 buildDotnetModule rec {
10   pname = "discordchatexporter-cli";
11   version = "2.43.3";
13   src = fetchFromGitHub {
14     owner = "tyrrrz";
15     repo = "discordchatexporter";
16     rev = version;
17     hash = "sha256-r9bvTgqKQY605BoUlysSz4WJMxn2ibNh3EhoMYCfV3c=";
18   };
20   projectFile = "DiscordChatExporter.Cli/DiscordChatExporter.Cli.csproj";
21   nugetDeps = ./deps.nix;
22   dotnet-sdk = dotnetCorePackages.sdk_8_0;
23   dotnet-runtime = dotnetCorePackages.runtime_8_0;
25   postFixup = ''
26     ln -s $out/bin/DiscordChatExporter.Cli $out/bin/discordchatexporter-cli
27   '';
29   passthru = {
30     updateScript = ./updater.sh;
31     tests.version = testers.testVersion {
32       package = discordchatexporter-cli;
33       version = "v${version}";
34     };
35   };
37   meta = with lib; {
38     description = "Tool to export Discord chat logs to a file";
39     homepage = "https://github.com/Tyrrrz/DiscordChatExporter";
40     license = licenses.gpl3Plus;
41     changelog = "https://github.com/Tyrrrz/DiscordChatExporter/blob/${version}/Changelog.md";
42     maintainers = with maintainers; [ ];
43     platforms = [ "x86_64-linux" ];
44     mainProgram = "discordchatexporter-cli";
45   };