18 gqlgen = import ./fix-gqlgen-trimpath.nix {
20 gqlgenVersion = "0.17.42";
23 src = fetchFromSourcehut {
27 hash = "sha256-tmbBw6x3nqN9nRIR3xOXQ+L5EACXLQYLXQYK3lsOsAI=";
30 gitApi = buildGoModule (
33 pname = "gitsrht-api";
35 vendorHash = "sha256-4KwnUi6ILUagMDXzuBG9CRT2N8uyjvRM74TwJqIzicc=";
40 gitDispatch = buildGoModule (
43 pname = "gitsrht-dispatch";
44 modRoot = "gitsrht-dispatch";
45 vendorHash = "sha256-4KwnUi6ILUagMDXzuBG9CRT2N8uyjvRM74TwJqIzicc=";
48 substituteInPlace gitsrht-dispatch/main.go \
49 --replace /var/log/gitsrht-dispatch /var/log/sourcehut/gitsrht-dispatch
55 gitKeys = buildGoModule (
58 pname = "gitsrht-keys";
59 modRoot = "gitsrht-keys";
60 vendorHash = "sha256-4KwnUi6ILUagMDXzuBG9CRT2N8uyjvRM74TwJqIzicc=";
63 substituteInPlace gitsrht-keys/main.go \
64 --replace /var/log/gitsrht-keys /var/log/sourcehut/gitsrht-keys
70 gitShell = buildGoModule (
73 pname = "gitsrht-shell";
74 modRoot = "gitsrht-shell";
75 vendorHash = "sha256-4KwnUi6ILUagMDXzuBG9CRT2N8uyjvRM74TwJqIzicc=";
78 substituteInPlace gitsrht-shell/main.go \
79 --replace /var/log/gitsrht-shell /var/log/sourcehut/gitsrht-shell
85 gitUpdateHook = buildGoModule (
88 pname = "gitsrht-update-hook";
89 modRoot = "gitsrht-update-hook";
90 vendorHash = "sha256-4KwnUi6ILUagMDXzuBG9CRT2N8uyjvRM74TwJqIzicc=";
93 substituteInPlace gitsrht-update-hook/main.go \
94 --replace /var/log/gitsrht-update-hook /var/log/sourcehut/gitsrht-update-hook
100 buildPythonPackage rec {
105 disabled = pythonOlder "3.7";
108 substituteInPlace Makefile \
109 --replace "all: api gitsrht-dispatch gitsrht-keys gitsrht-shell gitsrht-update-hook" ""
112 nativeBuildInputs = [
117 propagatedBuildInputs = [
125 export PKGVER=${version}
126 export SRHT_PATH=${srht}/${python.sitePackages}/srht
131 ln -s ${gitApi}/bin/api $out/bin/gitsrht-api
132 ln -s ${gitDispatch}/bin/gitsrht-dispatch $out/bin/gitsrht-dispatch
133 ln -s ${gitKeys}/bin/gitsrht-keys $out/bin/gitsrht-keys
134 ln -s ${gitShell}/bin/gitsrht-shell $out/bin/gitsrht-shell
135 ln -s ${gitUpdateHook}/bin/gitsrht-update-hook $out/bin/gitsrht-update-hook
138 pythonImportsCheck = [ "gitsrht" ];
141 homepage = "https://git.sr.ht/~sircmpwn/git.sr.ht";
142 description = "Git repository hosting service for the sr.ht network";
143 license = licenses.agpl3Only;
144 maintainers = with maintainers; [