feat(services/sync-gcsr): Add git synchronisation helper

Adds a tiny program that keeps a checkout of a remote git repository
in sync with a folder on the local filesystem.

This is going to be used to mirror the GCSR repository onto a local
disk for cgit serving.
This commit is contained in:
Vincent Ambo 2019-12-20 13:16:57 +00:00
parent 43ceaa17e3
commit 7078bc7a4a
2 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1,10 @@
{ pkgs, ... }:
pkgs.buildGo.program {
name = "sync-gcsr";
srcs = [ ./main.go ];
deps = with pkgs.third_party; map (p: p.gopkg) [
gopkgs."gopkg.in".src-d.go-git
];
}