nixpkgs/pkgs/applications/version-management/forgejo
emilylange 9fb68677e4
forgejo: fix applying of our STATIC_ROOT_PATH patch
This fixes an issue where running the forgejo package standalone,
without the use of our nixos/forgejo module, would try to use a
directory named `@data@` for its `STATIC_ROOT_PATH` assets.

This went unnoticed until now, because most users use the nixos/forgejo
module in which we explicitly set this option/setting/path to
`cfg.package.data` by default (`pkgs.forgejo.data`).

Also, this commit hard-copies the patch in question from gitea to our
nixpkgs derivation directory.

We decided a long time ago to part ways, and forgejo inheriting the
patch from gitea's drv directory puts strain on gitea.

So we don't do that anymore and instead maintain that patch ourselves
from now on.

Unfortunately, `substituteInPlace --subst-var` does not error, when the
substitution fails.

This would have prevented this issue from going unnoticed.
2024-03-28 20:10:53 +01:00
..
default.nix forgejo: fix applying of our STATIC_ROOT_PATH patch 2024-03-28 20:10:53 +01:00
package-json-npm-build-frontend.patch forgejo: build from source 2023-04-21 03:56:51 +02:00
static-root-path.patch forgejo: fix applying of our STATIC_ROOT_PATH patch 2024-03-28 20:10:53 +01:00