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