17 gqlgen = import ./fix-gqlgen-trimpath.nix {
19 gqlgenVersion = "0.17.45";
22 src = fetchFromSourcehut {
26 hash = "sha256-M38hAMRdMzcqxJv7j7foOIYEImr/ZYz/lbYOF9R9g2M=";
29 pastesrht-api = buildGoModule (
32 pname = "pastesrht-api";
34 vendorHash = "sha256-vt5nSPcx+Y/SaWcqjV38DTL3ZtzmdjbkJYMv5Fhhnq4=";
39 buildPythonPackage rec {
44 disabled = pythonOlder "3.7";
47 substituteInPlace Makefile \
48 --replace "all: api" ""
56 propagatedBuildInputs = [
62 export PKGVER=${version}
63 export SRHT_PATH=${srht}/${python.sitePackages}/srht
68 ln -s ${pastesrht-api}/bin/api $out/bin/pastesrht-api
71 pythonImportsCheck = [ "pastesrht" ];
74 homepage = "https://git.sr.ht/~sircmpwn/paste.sr.ht";
75 description = "Ad-hoc text file hosting service for the sr.ht network";
76 license = licenses.agpl3Only;
77 maintainers = with maintainers; [