Delete vendored discordchatexporter-cli
This commit is contained in:
parent
2cd801aa2b
commit
756bbce430
|
@ -1,43 +0,0 @@
|
||||||
{ lib
|
|
||||||
, buildDotnetModule
|
|
||||||
, fetchFromGitHub
|
|
||||||
, dotnetCorePackages
|
|
||||||
, testers
|
|
||||||
, discordchatexporter-cli
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildDotnetModule rec {
|
|
||||||
pname = "discordchatexporter-cli";
|
|
||||||
version = "2.36.1";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "tyrrrz";
|
|
||||||
repo = "discordchatexporter";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "svBVXny8ZsZnXG5cDPDKlR2dNhPzPOW4VGaOZkLrRNA=";
|
|
||||||
};
|
|
||||||
|
|
||||||
projectFile = "DiscordChatExporter.Cli/DiscordChatExporter.Cli.csproj";
|
|
||||||
nugetDeps = ./deps.nix;
|
|
||||||
|
|
||||||
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 = [ maintainers.ivar ];
|
|
||||||
platforms = [ "x86_64-linux" ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
# This file was automatically generated by passthru.fetch-deps.
|
|
||||||
# Please dont edit it manually, your changes might get overwritten!
|
|
||||||
|
|
||||||
{ fetchNuGet }: [
|
|
||||||
(fetchNuGet { pname = "AdvancedStringBuilder"; version = "0.1.0"; sha256 = "1lpv5sggdxza0bmcqmzf5r4i340f0m7nr5073lac18naj5697q5g"; })
|
|
||||||
(fetchNuGet { pname = "CliFx"; version = "2.3.0"; sha256 = "0dxxd5hm7gnc1lhq7k266nkcl84w0844r3cdxdcksvcc786f43vp"; })
|
|
||||||
(fetchNuGet { pname = "DotnetRuntimeBootstrapper"; version = "2.3.1"; sha256 = "0zsicyizachdam64mjm1brh5a3nzf7j8nalyhwnw26wk3v3rgmc9"; })
|
|
||||||
(fetchNuGet { pname = "Gress"; version = "2.0.1"; sha256 = "00xhyfkrlc38nbl6aymr7zwxc3kj0rxvx5gwk6fkfrvi1pzgq0wc"; })
|
|
||||||
(fetchNuGet { pname = "JsonExtensions"; version = "1.2.0"; sha256 = "0g54hibabbqqfhxjlnxwv1rxagpali5agvnpymp2w3dk8h6q66xy"; })
|
|
||||||
(fetchNuGet { pname = "MiniRazor.CodeGen"; version = "2.2.2"; sha256 = "11mxv1p7ahjzpf3sgacfx6szv1xwwk33vpz1r6wb2nch5dx93vdx"; })
|
|
||||||
(fetchNuGet { pname = "MiniRazor.Runtime"; version = "2.2.2"; sha256 = "1bjnqx06gzc13kpbhyndzfrvwgmxi7j0nbaxm7cmb1g7zq06vzrb"; })
|
|
||||||
(fetchNuGet { pname = "Polly"; version = "7.2.3"; sha256 = "1iws4jd5iqj5nlfp16fg9p5vfqqas1si0cgh8xcj64y433a933cv"; })
|
|
||||||
(fetchNuGet { pname = "Spectre.Console"; version = "0.44.0"; sha256 = "0f4q52rmib0q3vg7ij6z73mnymyas7c7wrm8dfdhrkdzn53zwl6p"; })
|
|
||||||
(fetchNuGet { pname = "Superpower"; version = "3.0.0"; sha256 = "0p6riay4732j1fahc081dzgs9q4z3n2fpxrin4zfpj6q2226dhz4"; })
|
|
||||||
(fetchNuGet { pname = "WebMarkupMin.Core"; version = "2.12.0"; sha256 = "1v4dcrpz2icm73w1pfrcjanx0x4j1khi65pyf1xd712lfpm7gpyd"; })
|
|
||||||
]
|
|
|
@ -1,17 +0,0 @@
|
||||||
#!/usr/bin/env nix-shell
|
|
||||||
#!nix-shell -I nixpkgs=./. -i bash -p curl jq common-updater-scripts
|
|
||||||
set -eo pipefail
|
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
||||||
|
|
||||||
deps_file="$(realpath "./deps.nix")"
|
|
||||||
|
|
||||||
new_version="$(curl -s "https://api.github.com/repos/tyrrrz/DiscordChatExporter/releases?per_page=1" | jq -r '.[0].name')"
|
|
||||||
old_version="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./default.nix)"
|
|
||||||
if [[ "$new_version" == "$old_version" ]]; then
|
|
||||||
echo "Up to date"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd ../../../..
|
|
||||||
update-source-version discordchatexporter-cli "$new_version"
|
|
||||||
$(nix-build -A discordchatexporter-cli.fetch-deps --no-out-link) "$deps_file"
|
|
Loading…
Reference in a new issue