From 6e209bdcefb12d212738b00653b73021c21c6090 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 2 May 2026 16:35:31 -0400 Subject: [PATCH] Update for the latest gitea. --- flake.lock | 48 +++++++++++ flake.nix | 55 +++++++++++++ local_payload.json | 195 ++++++++++++++++++--------------------------- src/hook_push.rs | 11 --- 4 files changed, 181 insertions(+), 128 deletions(-) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..840a0ca --- /dev/null +++ b/flake.lock @@ -0,0 +1,48 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1777578337, + "narHash": "sha256-Ad49moKWeXtKBJNy2ebiTQUEgdLyvGmTeykAQ9xM+Z4=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "15f4ee454b1dce334612fa6843b3e05cf546efab", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "rust-overlay": "rust-overlay" + } + }, + "rust-overlay": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1777691680, + "narHash": "sha256-sdCAzrPAaKu+yo7L2pWddy5PN6U9bO++WEWc1zcr7aQ=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "4757db4358c77c1cbe878fa5990e6ea88d82f6b5", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b9b92df --- /dev/null +++ b/flake.nix @@ -0,0 +1,55 @@ +{ + description = "webhook-bridge development environment"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + rust-overlay = { + url = "github:oxalica/rust-overlay"; + inputs = { + nixpkgs.follows = "nixpkgs"; + }; + }; + }; + + outputs = + { + self, + nixpkgs, + rust-overlay, + }: + let + forAllSystems = + func: + builtins.listToAttrs ( + map (system: { + name = system; + value = func system; + }) nixpkgs.lib.systems.flakeExposed + ); + in + { + devShells = forAllSystems ( + system: + let + overlays = [ (import rust-overlay) ]; + pkgs = import nixpkgs { + inherit system overlays; + }; + rustToolchain = pkgs.pkgsBuildHost.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml; + in + { + default = pkgs.mkShell { + nativeBuildInputs = [ + pkgs.pkg-config + rustToolchain + pkgs.openssl + ]; + buildInputs = with pkgs; [ + # sqlx-cli # For sqlx CLI to manage migrations + # sqlite # To access the database (sqlite is bundled into the together_alone binary but this is for manually accessing the db). + ]; + }; + } + ); + }; +} diff --git a/local_payload.json b/local_payload.json index 702fb44..a8e817f 100644 --- a/local_payload.json +++ b/local_payload.json @@ -1,115 +1,70 @@ { - "ref": "refs/heads/main", - "before": "69b891b59b1ee026e5bf2e7bee357eead5cbe546", - "after": "5bd07a34780a5b4aaa9b5d0eef22b6e4ac1880a1", - "compare_url": "https://code.fizz.buzz/mirror/org-mode/compare/69b891b59b1ee026e5bf2e7bee357eead5cbe546...5bd07a34780a5b4aaa9b5d0eef22b6e4ac1880a1", + "ref": "refs/heads/kubernetes", + "before": "e767de378a478fa41615cee71a9ba04830520d7d", + "after": "c83b8afd7910f25eb94d90325f3765b5d19900e4", + "compare_url": "https://code.fizz.buzz/talexander/machine_setup/compare/e767de378a478fa41615cee71a9ba04830520d7d...c83b8afd7910f25eb94d90325f3765b5d19900e4", "commits": [ { - "id": "5bd07a34780a5b4aaa9b5d0eef22b6e4ac1880a1", - "message": "; Fix eaten escaping backslash in the documentation\n\n* lisp/org-keys.el (org-use-speed-commands): Add a missing backslash\nto the documentation string of the custom variable. Also, update\n`setq' to `setopt' and re-indent for clarity.\n", - "url": "https://code.fizz.buzz/mirror/org-mode/commit/5bd07a34780a5b4aaa9b5d0eef22b6e4ac1880a1", + "id": "c83b8afd7910f25eb94d90325f3765b5d19900e4", + "message": "Delete images after 24 hours of being unused.\n", + "url": "https://code.fizz.buzz/talexander/machine_setup/commit/c83b8afd7910f25eb94d90325f3765b5d19900e4", "author": { - "name": "Rudolf Adamkovič", - "email": "rudolf@adamkovic.org", + "name": "Tom Alexander", + "email": "tom@fizz.buzz", "username": "" }, "committer": { - "name": "Rudolf Adamkovič", - "email": "rudolf@adamkovic.org", + "name": "Tom Alexander", + "email": "tom@fizz.buzz", "username": "" }, "verification": null, - "timestamp": "2025-08-17T14:12:07+02:00", + "timestamp": "2026-05-02T15:53:35-04:00", "added": [], "removed": [], "modified": [ - "lisp/org-keys.el" - ] - }, - { - "id": "b0f793ff0a31adb520fc5989b0399786663192ea", - "message": "Support arrow keys and mouse wheel in export dispatcher\n\n* lisp/ox.el (org-export--dispatch-action): Translate down/up arrow\nkeys and scroll wheel to C-n/C-p, respectively.\n* etc/ORG-NEWS (Fancy HTML5 export uses ~