Skip to content

Commit

Permalink
forgejo: 8.0.3 -> 9.0.0
Browse files Browse the repository at this point in the history
Forgejo v9 is now licensed under GPL-3.0-or-later.
Release notes: https://codeberg.org/forgejo/forgejo/milestone/7235
  • Loading branch information
NyCodeGHG committed Oct 6, 2024
1 parent a495cb3 commit 7b95577
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2411.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
Users can use it by `services.displayManager.ly.enable` and config it by
`services.displayManager.ly.settings` to generate `/etc/ly/config.ini`

- `forgejo` has been upgraded to version 9.0, see the [release notes](https://codeberg.org/forgejo/forgejo/milestone/7235).

- The default sound server for most graphical sessions has been switched from PulseAudio to PipeWire.
Users that want to keep PulseAudio will want to set `services.pipewire.enable = false;` and `hardware.pulseaudio.enable = true;`.
There is currently no plan to fully deprecate and remove PulseAudio, however, PipeWire should generally be preferred for new installs.
Expand Down
10 changes: 5 additions & 5 deletions pkgs/by-name/fo/forgejo/generic.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ lts ? false
, version
, rev ? "refs/tags/v${version}"
, hash
, npmDepsHash
, vendorHash
Expand All @@ -8,7 +9,7 @@

{ bash
, brotli
, buildGoModule
, buildGo123Module
, forgejo
, git
, gzip
Expand All @@ -30,8 +31,7 @@ let
domain = "codeberg.org";
owner = "forgejo";
repo = "forgejo";
rev = "v${version}";
inherit hash;
inherit rev hash;
};

frontend = buildNpmPackage {
Expand All @@ -49,7 +49,7 @@ let
'';
};
in
buildGoModule rec {
buildGo123Module rec {
pname = "forgejo" + lib.optionalString lts "-lts";

inherit
Expand Down Expand Up @@ -156,7 +156,7 @@ buildGoModule rec {
description = "Self-hosted lightweight software forge";
homepage = "https://forgejo.org";
changelog = "https://codeberg.org/forgejo/forgejo/releases/tag/${src.rev}";
license = lib.licenses.mit;
license = if lib.versionAtLeast version "9.0.0" then lib.licenses.gpl3Plus else lib.licenses.mit;
maintainers = with lib.maintainers; [ emilylange urandom bendlas adamcstephens marie ];
broken = stdenv.hostPlatform.isDarwin;
mainProgram = "gitea";
Expand Down
9 changes: 5 additions & 4 deletions pkgs/by-name/fo/forgejo/package.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import ./generic.nix {
version = "8.0.3";
hash = "sha256-PvCWUiJIs9ktuJetPYZT0V8S8+OYahCDZiZQpvWWXhY=";
npmDepsHash = "sha256-E4eq4OompY8e+722PbSFCmcarpYBpO/n9X6GVU9AhDU=";
vendorHash = "sha256-4l4kscwesW/cR8mZjE3G9HcVm0d1ukxbtBY6RXYRi8k=";
version = "9.0.0";
rev = "0ae05e1000d2dd8354b932fcc19c8eda23647da6";
hash = "sha256-BXVPB8DXkMkKv/5CFZsxx7xjBvA62Oogk+zC5brjXGY=";
npmDepsHash = "sha256-UFUNOR+ks3hDmT7uVEToX+rMmlFL6gQqigAxl6RP37Q=";
vendorHash = "sha256-j3BY6fEXCL82TDna80vjL25FDFLUhyMtmQW8d6GLQdk=";
lts = false;
nixUpdateExtraArgs = [
"--override-filename"
Expand Down

0 comments on commit 7b95577

Please sign in to comment.