···2424 pname = "forgejo-frontend";
2525 inherit (forgejo) src version;
26262727- npmDepsHash = "sha256-uMPy4cqMDNZTpF+pk7YibXEJO1zxVfwlCeFzGgJBiU0=";
2727+ npmDepsHash = "sha256-BffoEbIzTU61bw3ECEm5eDHcav4S27MB5jQKsMprkcw=";
28282929 patches = [
3030 ./package-json-npm-build-frontend.patch
···3939in
4040buildGoModule rec {
4141 pname = "forgejo";
4242- version = "1.21.11-1";
4242+ version = "7.0.0";
43434444 src = fetchFromGitea {
4545 domain = "codeberg.org";
4646 owner = "forgejo";
4747 repo = "forgejo";
4848 rev = "v${version}";
4949- hash = "sha256-7oYsoZpZcNIUw3iXSi1Q5So2yYgKnT5U7GHQ4NVqVdc=";
5050- # Forgejo has multiple different version strings that need to be provided
5151- # via ldflags. main.ForgejoVersion for example is a combination of a
5252- # hardcoded gitea compatibility version string (in the Makefile) and
5353- # git describe and is easiest to get by invoking the Makefile.
5454- # So we do that, store it the src FOD to then extend the ldflags array
5555- # in preConfigure.
5656- # The `echo -e >> Makefile` is temporary and already part of the next
5757- # major release. Furthermore, the ldflags will change next major release
5858- # and need to be updated accordingly.
5959- leaveDotGit = true;
6060- postFetch = ''
6161- cd "$out"
6262- echo -e 'show-version-full:\n\t@echo ''${FORGEJO_VERSION}' >> Makefile
6363- make show-version-full > FULL_VERSION
6464- find "$out" -name .git -print0 | xargs -0 rm -rf
6565- '';
4949+ hash = "sha256-oIx1aPrHgOWx13ocA3t7N5UdTgr+64tgC0XcEnhA/eE=";
6650 };
67516868- vendorHash = "sha256-OuWNF+muWM6xqwkFxLIUsn/huqXj2VKg8BN9+JHVw58=";
5252+ vendorHash = "sha256-UcjaMi/4XYLdaJhi2j3UWqHqkpTbZBo6EwNXxdRIKLw=";
69537054 subPackages = [ "." ];
7155···9377 ];
94789579 preConfigure = ''
9696- export ldflags+=" -X code.gitea.io/gitea/routers/api/forgejo/v1.ForgejoVersion=$(cat FULL_VERSION) -X main.ForgejoVersion=$(cat FULL_VERSION)"
8080+ export ldflags+=" -X main.ForgejoVersion=$(GITEA_VERSION=${version} make show-version-api)"
9781 '';
98829983 preBuild = ''