21 gqlgen = import ./fix-gqlgen-trimpath.nix {
23 gqlgenVersion = "0.17.39";
26 src = fetchFromSourcehut {
28 repo = "builds.sr.ht";
30 hash = "sha256-rmNaBnTPDDQO/ImkGkMwW8fyjQyBUBchTEnbtAK24pw=";
33 buildsrht-api = buildGoModule (
36 pname = "buildsrht-api";
38 vendorHash = "sha256-dwpuB+aYqzhGSdGVq/F9FTdHWMBkGMtVuZ7I3hB3b+Q=";
43 buildsrht-worker = buildGoModule (
46 pname = "buildsrht-worker";
48 vendorHash = "sha256-dwpuB+aYqzhGSdGVq/F9FTdHWMBkGMtVuZ7I3hB3b+Q=";
53 buildPythonPackage rec {
58 disabled = pythonOlder "3.7";
61 substituteInPlace Makefile \
62 --replace "all: api worker" ""
70 propagatedBuildInputs = [
76 # Unofficial dependencies
82 export PKGVER=${version}
83 export SRHT_PATH=${srht}/${python.sitePackages}/srht
88 mkdir -p $out/bin/builds.sr.ht
91 cp contrib/submit_image_build $out/bin/builds.sr.ht
92 ln -s ${buildsrht-api}/bin/api $out/bin/buildsrht-api
93 ln -s ${buildsrht-worker}/bin/worker $out/bin/buildsrht-worker
96 pythonImportsCheck = [ "buildsrht" ];
99 homepage = "https://git.sr.ht/~sircmpwn/builds.sr.ht";
100 description = "Continuous integration service for the sr.ht network";
101 license = licenses.agpl3Only;
102 maintainers = with maintainers; [