7078bc7a4a
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.
10 lines
179 B
Nix
10 lines
179 B
Nix
{ 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
|
|
];
|
|
}
|