Skip to content

Commit

Permalink
sourcehut.pagessrht: 0.7.3 -> 0.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ju1m authored and tomberek committed Jun 8, 2022
1 parent c32f043 commit 2524e0d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ unzip }:
{ unzip
, gqlgenVersion ? "0.17.2"
}:
{
overrideModAttrs = (_: {
# No need to workaround -trimpath: it's not used in go-modules,
Expand All @@ -21,7 +23,7 @@
# https://github.com/99designs/gqlgen/issues/1537
# This is to give `go generate ./graph` access to gqlgen's *.gotpl files
# If it fails, the gqlgenVersion may have to be updated.
preBuild = let gqlgenVersion = "0.17.2"; in ''
preBuild = ''
unzip ''${GOPROXY#"file://"}/github.com/99designs/gqlgen/@v/v${gqlgenVersion}.zip
go generate ./loaders
go generate ./graph
Expand Down
13 changes: 9 additions & 4 deletions pkgs/applications/version-management/sourcehut/pages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,21 @@

buildGoModule (rec {
pname = "pagessrht";
version = "0.7.3";
version = "0.7.4";

src = fetchFromSourcehut {
owner = "~sircmpwn";
repo = "pages.sr.ht";
rev = version;
sha256 = "sha256-fHhf4VQ82/k4g8pzyuN9Pr2f8mxT8zw+2Nq0nw1Msks=";
sha256 = "sha256-WM9T2LS8yIqaR0PQQRgMk/tiMYcw8DZVPMqMWkj/5RY=";
};

vendorSha256 = "sha256-/+XVl6PZUMOZIiuO6vEu0dacefz2hDSObaP8JsItSTw=";
postPatch = ''
substituteInPlace Makefile \
--replace "all: server" ""
'';

vendorSha256 = "sha256-VOqY/nStqGyfWOXnJSZX8UYyp2kzcibQM2NRNysHYEc=";

postInstall = ''
mkdir -p $out/share/sql/
Expand All @@ -30,4 +35,4 @@ buildGoModule (rec {
};
# There is no ./loaders but this does not cause troubles
# to go generate
} // import ./fix-gqlgen-trimpath.nix { inherit unzip; })
} // import ./fix-gqlgen-trimpath.nix { inherit unzip; gqlgenVersion= "0.17.9"; })

0 comments on commit 2524e0d

Please sign in to comment.