1
0
Fork 0

discord-downloader-go: add

This commit is contained in:
Daniel Kempkens 2024-02-04 22:45:11 +01:00
parent 688586eba1
commit c260c7b5d3
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
4 changed files with 35 additions and 0 deletions

View file

@ -26,6 +26,10 @@ jobs:
run: | run: |
nix build '.#bulk-downloader-for-reddit' nix build '.#bulk-downloader-for-reddit'
attic push ${{ secrets.ATTIC_CACHE }} ./result 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 - name: Build fennel-ls
run: | run: |
nix build '.#fennel-ls' nix build '.#fennel-ls'
@ -58,6 +62,10 @@ jobs:
run: | run: |
nix build '.#rexit' nix build '.#rexit'
attic push ${{ secrets.ATTIC_CACHE }} ./result attic push ${{ secrets.ATTIC_CACHE }} ./result
- name: Build tg-archive
run: |
nix build '.#tg-archive'
attic push ${{ secrets.ATTIC_CACHE }} ./result
- name: Build vuetorrent - name: Build vuetorrent
run: | run: |
nix build '.#vuetorrent' nix build '.#vuetorrent'

View file

@ -20,9 +20,11 @@ jobs:
run: | run: |
nix-update --flake anonymous-overflow nix-update --flake anonymous-overflow
nix-update --flake --version development bulk-downloader-for-reddit nix-update --flake --version development bulk-downloader-for-reddit
nix-update --flake discord-downloader-go
nix-update --flake q nix-update --flake q
nix-update --flake redlib 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 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 nix-update --flake vuetorrent
- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5 - uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
with: with:

View file

@ -38,6 +38,7 @@
{ {
anonymous-overflow = import ./packages/anonymous-overflow.nix { inherit pkgs lib; }; anonymous-overflow = import ./packages/anonymous-overflow.nix { inherit pkgs lib; };
bulk-downloader-for-reddit = import ./packages/bulk-downloader-for-reddit.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; }; fennel-ls = import ./packages/fennel-ls.nix { inherit pkgs lib; };
headscale-ui = import ./packages/headscale-ui.nix { inherit pkgs lib; }; headscale-ui = import ./packages/headscale-ui.nix { inherit pkgs lib; };
lexical = import ./packages/lexical.nix { inherit pkgs lib; }; lexical = import ./packages/lexical.nix { inherit pkgs lib; };

View file

@ -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" ];
};
}