From c1d7714a212e80756e8f1b83cbc7f077dedb7abd Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Mon, 19 Apr 2021 22:49:15 +0200 Subject: feat(users/Profpatsch): add git-db MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit WIP: currently just a simple setup that creates an empty git repo if it doesn’t exist yet, and writes a commit to it. A simple database backed by a bare git repository. WIP: Will speak a simple interactive protocol to query files and update them atomically. It could be made atomic on the git repo level, if a lock is taken between reading the current commit ref and creating the commit. Change-Id: I1fd30a046ac977063c3e08c36d96e835b35ff07d Reviewed-on: https://cl.tvl.fyi/c/depot/+/3046 Tested-by: BuildkiteCI Reviewed-by: Profpatsch --- users/Profpatsch/git-db/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 users/Profpatsch/git-db/default.nix (limited to 'users/Profpatsch/git-db/default.nix') diff --git a/users/Profpatsch/git-db/default.nix b/users/Profpatsch/git-db/default.nix new file mode 100644 index 0000000000..7c6f1aee7c --- /dev/null +++ b/users/Profpatsch/git-db/default.nix @@ -0,0 +1,8 @@ +{ depot, pkgs, lib, ... }: + +depot.nix.writers.rustSimple { + name = "git-db"; + dependencies = [ + depot.third_party.rust-crates.git2 + ]; +} (builtins.readFile ./git-db.rs) -- cgit 1.4.1