https://git.jolheiser.com/ugit.git
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
{ pkgs ? import <nixpkgs>, }: let name = "ugitd"; in pkgs.buildGoModule { pname = name; version = "main"; src = pkgs.nix-gitignore.gitignoreSource [ ] ( builtins.path { inherit name; path = ../.; } ); subPackages = [ "cmd/ugitd" "cmd/ugit-uci" ]; vendorHash = pkgs.lib.fileContents ../go.mod.sri; CGO_ENABLED = 0; flags = [ "-trimpath" ]; ldflags = [ "-s" "-w" "-extldflags -static" ]; meta = { description = "Minimal git server"; homepage = "https://git.jolheiser.com/ugit"; mainProgram = "ugitd"; }; }