diff options
author | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2024-01-20 08:28:25 -0500 |
---|---|---|
committer | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2024-03-01 06:51:20 -0500 |
commit | eea6943f7fd8f19cd9de1eb0f5853d112953fec3 (patch) | |
tree | e08d4485aadd92d9c58b8620b29b1517db320333 /pkgs/by-name/di/discordchatexporter-cli/package.nix | |
parent | 09c1497ce5d4ed4a0edfdd44450d3048074cb300 (diff) |
discordchatexporter-cli: move to by-name
Diffstat (limited to 'pkgs/by-name/di/discordchatexporter-cli/package.nix')
-rw-r--r-- | pkgs/by-name/di/discordchatexporter-cli/package.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/by-name/di/discordchatexporter-cli/package.nix b/pkgs/by-name/di/discordchatexporter-cli/package.nix new file mode 100644 index 0000000000000..518113e0b217b --- /dev/null +++ b/pkgs/by-name/di/discordchatexporter-cli/package.nix @@ -0,0 +1,46 @@ +{ lib +, buildDotnetModule +, dotnetCorePackages +, fetchFromGitHub +, testers +, discordchatexporter-cli +}: + +buildDotnetModule rec { + pname = "discordchatexporter-cli"; + version = "2.41.2"; + + src = fetchFromGitHub { + owner = "tyrrrz"; + repo = "discordchatexporter"; + rev = version; + hash = "sha256-8ETEIZXIo7Tx6Vb9Id/E/8IklpcvO9OpcrYD+mHRX3o="; + }; + + projectFile = "DiscordChatExporter.Cli/DiscordChatExporter.Cli.csproj"; + nugetDeps = ./deps.nix; + dotnet-sdk = dotnetCorePackages.sdk_7_0; + dotnet-runtime = dotnetCorePackages.runtime_7_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 = 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"; + maintainers = with maintainers; [ eclairevoyant ivar ]; + platforms = [ "x86_64-linux" ]; + mainProgram = "discordchatexporter-cli"; + }; +} |