3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/backup/discordchatexporter-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
, testVersion
, discordchatexporter-cli
2021-06-27 22:59:13 +01:00
}:
buildDotnetModule rec {
2021-06-27 22:59:13 +01:00
pname = "discordchatexporter-cli";
version = "2.33.2";
2021-06-27 22:59:13 +01:00
src = fetchFromGitHub {
owner = "tyrrrz";
repo = "discordchatexporter";
rev = version;
sha256 = "wOSa6O3O4QlGL5ecnR14ldXPYV5mDoPDlJjcwN5Lrek=";
2021-06-27 22:59:13 +01:00
};
dotnet-sdk = dotnetCorePackages.sdk_6_0;
dotnet-runtime = dotnetCorePackages.runtime_6_0;
projectFile = "DiscordChatExporter.Cli/DiscordChatExporter.Cli.csproj";
nugetDeps = ./deps.nix;
2021-06-27 22:59:13 +01:00
postFixup = ''
ln -s $out/bin/DiscordChatExporter.Cli $out/bin/discordchatexporter-cli
'';
passthru = {
updateScript = ./updater.sh;
tests.version = testVersion {
package = discordchatexporter-cli;
version = "v${version}";
};
};
2021-06-27 22:59:13 +01:00
meta = with lib; {
description = "A tool to export Discord chat logs to a file";
homepage = "https://github.com/Tyrrrz/DiscordChatExporter";
license = licenses.gpl3Plus;
changelog = "https://github.com/Tyrrrz/DiscordChatExporter/blob/${version}/Changelog.md";
2021-06-27 22:59:13 +01:00
maintainers = [ maintainers.ivar ];
platforms = [ "x86_64-linux" ];
};
}