Commit Graph

42 Commits

Author SHA1 Message Date
Adam C. Stephens
c3b6e7339b
forgejo: 9.0.2 -> 9.0.3, forgejo-lts: 7.0.11 -> 7.0.12 (#364715) 2024-12-12 18:25:19 -05:00
emilylange
d6a624885c
forgejo: 9.0.2 -> 9.0.3
https://codeberg.org/forgejo/forgejo/releases/tag/v9.0.3

403a81bdb5/release-notes-published/9.0.3.md

diff: https://codeberg.org/forgejo/forgejo/compare/v9.0.2...v9.0.3
2024-12-12 21:28:02 +01:00
emilylange
caf56210da
forgejo-lts: 7.0.11 -> 7.0.12
https://codeberg.org/forgejo/forgejo/releases/tag/v7.0.12

403a81bdb5/release-notes-published/7.0.12.md

diff: https://codeberg.org/forgejo/forgejo/compare/v7.0.11...v7.0.12
2024-12-12 21:26:16 +01:00
Pyrox
b800579648
nixos/forgejo,forgejo: Add pyrox0 as a maintainer 2024-12-12 21:11:32 +01:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Sergei Trofimovich
6db3c2f633 forgejo.updateScript: fix the regex escape 2024-12-04 20:48:20 +00:00
Adam Stephens
27d5879adb
forgejo: use major version to target upgrade stream 2024-11-16 17:39:32 -05:00
Marie Ramlow
831c957efd forgejo-lts: 7.0.10 -> 7.0.11
Release Notes: https://codeberg.org/forgejo/forgejo/milestone/8609
2024-11-15 21:30:02 +01:00
Marie Ramlow
96c64ca660 forgejo: 9.0.1 -> 9.0.2
Release Notes: https://codeberg.org/forgejo/forgejo/milestone/8610
2024-11-15 21:27:29 +01:00
Peder Bergebakken Sundt
69d3ba4466 forgejo: remove refs/tags/ from github release meta.changelog 2024-11-05 12:50:10 +01:00
Marie Ramlow
0e158f7f9d forgejo-lts: 7.0.9 -> 7.0.10
Release Notes: https://codeberg.org/forgejo/forgejo/milestone/8286
2024-10-28 18:34:15 +01:00
Marie Ramlow
6738a38cf5 forgejo: 9.0.0 -> 9.0.1
Release Notes: https://codeberg.org/forgejo/forgejo/milestone/8544
2024-10-28 17:34:18 +01:00
Marie Ramlow
ec4f809cd5 forgejo: 8.0.3 -> 9.0.0
Forgejo v9 is now licensed under GPL-3.0-or-later.
Release notes: https://codeberg.org/forgejo/forgejo/milestone/7235
2024-10-17 13:31:38 +02:00
Marie Ramlow
e1a6020215 forgejo: add marie to maintainers 2024-10-17 13:26:43 +02:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Marie Ramlow
e7a812b9a9 forgejo-lts: 7.0.8 -> 7.0.9 2024-09-06 17:44:13 +00:00
Marie Ramlow
5754363933 forgejo: 8.0.2 -> 8.0.3 2024-09-06 17:42:27 +00:00
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