11 src = fetchFromSourcehut {
15 hash = "sha256-Lobuf12ybSO7Y4ztOLMFW0dmPFaBSEPCy4Nmh89tylI=";
19 substituteInPlace Makefile \
20 --replace "all: server" ""
22 # fix build failure due to unused import
23 substituteInPlace server.go \
24 --replace-warn ' "fmt"' ""
27 vendorHash = "sha256-9hpOkP6AYSZe7MW1mrwFEKq7TvVt6OcF6eHWY4jARuU=";
30 mkdir -p $out/share/sql/
31 cp -r -t $out/share/sql/ schema.sql migrations
35 homepage = "https://git.sr.ht/~sircmpwn/pages.sr.ht";
36 description = "Web hosting service for the sr.ht network";
37 mainProgram = "pages.sr.ht";
38 license = licenses.agpl3Only;
39 maintainers = with maintainers; [ eadwu christoph-heiss ];
41 # There is no ./loaders but this does not cause troubles
43 } // import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion = "0.17.42"; })