From 7078bc7a4a2134bb12002144f660f4dbdcbf838d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 20 Dec 2019 13:16:57 +0000 Subject: 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. --- services/sync-gcsr/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 services/sync-gcsr/default.nix (limited to 'services/sync-gcsr/default.nix') diff --git a/services/sync-gcsr/default.nix b/services/sync-gcsr/default.nix new file mode 100644 index 000000000000..114ff221bed1 --- /dev/null +++ b/services/sync-gcsr/default.nix @@ -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 + ]; +} -- cgit 1.4.1