diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 2f479a0..c6dacfe 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -26,6 +26,10 @@ jobs: run: | nix build '.#bulk-downloader-for-reddit' attic push ${{ secrets.ATTIC_CACHE }} ./result + - name: Build discord-downloader-go + run: | + nix build '.#discord-downloader-go' + attic push ${{ secrets.ATTIC_CACHE }} ./result - name: Build fennel-ls run: | nix build '.#fennel-ls' @@ -58,6 +62,10 @@ jobs: run: | nix build '.#rexit' attic push ${{ secrets.ATTIC_CACHE }} ./result + - name: Build tg-archive + run: | + nix build '.#tg-archive' + attic push ${{ secrets.ATTIC_CACHE }} ./result - name: Build vuetorrent run: | nix build '.#vuetorrent' diff --git a/.forgejo/workflows/update-flake.yml b/.forgejo/workflows/update-flake.yml index 005d1a3..1ee23fd 100644 --- a/.forgejo/workflows/update-flake.yml +++ b/.forgejo/workflows/update-flake.yml @@ -20,9 +20,11 @@ jobs: run: | nix-update --flake anonymous-overflow nix-update --flake --version development bulk-downloader-for-reddit + nix-update --flake discord-downloader-go nix-update --flake q nix-update --flake redlib env NIX_PATH=nixpkgs=$(nix flake metadata github:nixos/nixpkgs/nixos-unstable-small --json | jq -r .path) nix-shell ./packages/tabnine/update.sh + nix-update --flake tg-archive nix-update --flake vuetorrent - uses: https://github.com/stefanzweifel/git-auto-commit-action@v5 with: diff --git a/flake.nix b/flake.nix index 9d5f153..f8b10be 100644 --- a/flake.nix +++ b/flake.nix @@ -38,6 +38,7 @@ { anonymous-overflow = import ./packages/anonymous-overflow.nix { inherit pkgs lib; }; bulk-downloader-for-reddit = import ./packages/bulk-downloader-for-reddit.nix { inherit pkgs lib; }; + discord-downloader-go = import ./packages/discord-downloader-go.nix { inherit pkgs lib; }; fennel-ls = import ./packages/fennel-ls.nix { inherit pkgs lib; }; headscale-ui = import ./packages/headscale-ui.nix { inherit pkgs lib; }; lexical = import ./packages/lexical.nix { inherit pkgs lib; }; diff --git a/packages/discord-downloader-go.nix b/packages/discord-downloader-go.nix new file mode 100644 index 0000000..9d7f603 --- /dev/null +++ b/packages/discord-downloader-go.nix @@ -0,0 +1,24 @@ +{ pkgs, lib }: + +pkgs.buildGo121Module rec { + pname = "discord-downloader-go"; + version = "2.4.0"; + + src = pkgs.fetchFromGitHub { + owner = "get-got"; + repo = pname; + rev = "v${version}"; + hash = "sha256-83B+sFnDE3tDdDT+4C1Sqf3zNN4J+gz0g55yDiV5ngg="; + }; + + vendorHash = "sha256-2czUty8sh2CJxukIE77RrlCHNfhB3qUYmFAUy/ehz6s="; + + doCheck = false; + + meta = with lib; { + description = "A Discord bot program to download and otherwise handle files sent in Discord channels with extensive configuration."; + homepage = "https://github.com/get-got/discord-downloader-go"; + license = [ licenses.mit ]; + platforms = [ "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "x86_64-linux" ]; + }; +}