Commit Graph

25 Commits

Author SHA1 Message Date
Marie Ramlow
4d4d4aba63 forgejo-lts: 7.0.7 -> 7.0.8
https://codeberg.org/forgejo/forgejo/milestone/7729
2024-08-29 18:15:17 +02:00
Marie Ramlow
4c3b0517fb forgejo: 8.0.1 -> 8.0.2
https://codeberg.org/forgejo/forgejo/milestone/7728
2024-08-29 17:37:27 +02:00
emilylange
07641a91c9
forgejo,forgejo-lts: remove PAM support
https://forgejo.org/docs/latest/user/authentication/#pam-pluggable-authentication-module

PAM support has to be enabled at compile time and upstream considers it
opt-in.

Official upstream binaries have it disabled.

We enabled it by default because we simply inherited most of it from
Gitea when the split in nixpkgs happened.

Reasons why it had been enabled in nixpkgs for Gitea are unknown.

See 9406f240a7.

There is reason to believe not a single Forgejo instance running on
NixOS uses this feature because it literally segfaults due to our
sandboxing.
2024-08-17 21:07:23 +02:00
emilylange
d674ed6f5e
forgejo-lts: 7.0.6 -> 7.0.7
https://codeberg.org/forgejo/forgejo/releases/tag/v7.0.7

https://codeberg.org/forgejo/forgejo/milestone/7683

diff: https://codeberg.org/forgejo/forgejo/compare/v7.0.6...v7.0.7
2024-08-09 18:15:56 +02:00
emilylange
37a9b9f60d
forgejo: 8.0.0 -> 8.0.1
https://codeberg.org/forgejo/forgejo/releases/tag/v8.0.1

https://codeberg.org/forgejo/forgejo/milestone/7682

diff: https://codeberg.org/forgejo/forgejo/compare/v8.0.0...v8.0.1
2024-08-09 18:15:43 +02:00
emilylange
31d5838761
forgejo,forgejo-lts: fix passthru.updateScript
`nix-update` is unable to detect that the hashes are in `packages.nix`
and `lts.nix` instead of `generic.nix` (where the `.src` attribute lies)
respectively.

`nix-update` provides a `--override-filename` flag to override that
heuristic, so we use that.

Additionally, scope `lts.nix` to the 7.x version series by using
`--version-regex`.
2024-08-09 18:12:44 +02:00
emilylange
bde28ca593
nixos/tests/forgejo: add forgejo-lts variant 2024-07-31 03:59:13 +02:00
emilylange
aee3533fbc
forgejo-lts: init at 7.0.6
forgejo-lts was previously called forgejo.
forgejo now follows the non-lts releases.

https://codeberg.org/forgejo/forgejo/releases/tag/v7.0.6
2024-07-31 03:59:10 +02:00
emilylange
69d4e0a34f
forgejo: 7.0.5 -> 8.0.0
https://codeberg.org/forgejo/forgejo/releases/tag/v8.0.0
2024-07-31 03:59:08 +02:00
emilylange
a2e9da2c40
forgejo: refactor to support multiple versions 2024-07-31 03:59:07 +02:00
emilylange
f3bffa8c62
forgejo: rename package.nix to generic.nix in preparation for multiple versions
Otherwise, git wouldn't be able to detect and flag this as a rename and
as such would lose us valuable history when using git blame or git log.
2024-07-31 03:58:47 +02:00
emilylange
69732cb115
forgejo: move checkPhase inputs to nativeCheckInputs 2024-07-31 02:18:00 +02:00
Sigmanificient
61fe0c0416 pkgs/by-name: remove unused arguments 2024-07-26 10:11:07 +02:00
Vri
d1c43d9b67
forgejo: 7.0.4 -> 7.0.5 2024-07-04 12:11:11 +02:00
Vri
7d38c0c697
forgejo: remove no longer required patch
Credits to @emilylange :)
2024-07-04 12:03:59 +02:00
emilylange
010157293b
forgejo: actually run go tests
We cannot rely on `buildGoModule`'s default test selection if
`subPackages` is set:

~~~
Running phase: checkPhase
?       code.gitea.io/gitea     [no test files]
?       code.gitea.io/gitea/contrib/environment-to-ini  [no test files]
checkPhase completed in 53 seconds
~~~

So we override it in `preCheck` and skip some tests that fail in our
sandbox (e.g. because they require networking).

Note that this does slow down building the package quite a bit because
there are a lot of tests to run.

Still worth it IMHO.
2024-06-18 21:36:26 +02:00
Vri
9c51d83ba8
forgejo: 7.0.3 -> 7.0.4 2024-06-13 20:04:37 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
emilylange
ae8404ff58
forgejo: build environment-to-ini for use in nixos/forgejo secret refactor
This is needed for the upcoming nixos/forgejo secret refactor that will
leverage `environment-to-ini` instead of `pkgs.replace-secret`.

https://codeberg.org/forgejo/forgejo/src/tag/v7.0.2/contrib/environment-to-ini/environment-to-ini.go

To read the motivation behind this, please see the actual nixos/forgejo
refactor commit following this commit.
2024-06-05 00:45:48 +02:00
emilylange
c9fe76d1f9
forgejo: 7.0.2 -> 7.0.3
https://codeberg.org/forgejo/forgejo/releases/tag/v7.0.3

https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-3

diff: https://codeberg.org/forgejo/forgejo/compare/v7.0.2...v7.0.3
2024-05-22 20:22:07 +02:00
emilylange
215eb32ecb
forgejo: remove no longer needed preBuild phase (noop)
This slipped through the 1.21.11-1 -> 7.0.0 bump in
6c359d6488.

Upstream made this a noop with a deprecation warning instead of a
hard fail in https://codeberg.org/forgejo/forgejo/pulls/2864.

Note: In that PR (it's commit) they link to nixpkgs as downstream
consumer of it (`build/merge-forgejo-locales.go`).

~~~
# Before
Running phase: buildPhase
NOT NEEDED: THIS IS A NOOP AS OF Forgejo 7.0 BUT KEPT FOR BACKWARD COMPATIBILITY
Building subPackage ./.

# After
Running phase: buildPhase
Building subPackage ./.
~~~

Upstream commit: 6647e4d53f
2024-05-20 22:19:00 +02:00
Adam Stephens
cf02ff86bb
forgejo: 7.0.1 -> 7.0.2
Changelog: https://codeberg.org/forgejo/forgejo/releases/tag/v7.0.2
2024-05-02 14:15:48 -04:00
Adam Stephens
c6040649ce
forgejo: 7.0.0 -> 7.0.1 2024-04-27 12:26:40 +00:00
Adam Stephens
6c359d6488
forgejo: 1.21.11-1 -> 7.0.0 2024-04-23 19:04:25 -04:00
Adam Stephens
3b4dad9b00
forgejo: move to by-name 2024-04-23 13:57:23 -04:00