forgejo-lts: 7.0.14 -> 11.0.0
Release-Notes: https://codeberg.org/forgejo/forgejo/milestone/9323
This commit is contained in:
@@ -40,9 +40,9 @@ let
|
||||
pname = "forgejo-frontend";
|
||||
inherit src version npmDepsHash;
|
||||
|
||||
patches = [
|
||||
./package-json-npm-build-frontend.patch
|
||||
];
|
||||
buildPhase = ''
|
||||
./node_modules/.bin/webpack
|
||||
'';
|
||||
|
||||
# override npmInstallHook
|
||||
installPhase = ''
|
||||
@@ -128,6 +128,10 @@ buildGoModule rec {
|
||||
in
|
||||
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
||||
|
||||
preInstall = ''
|
||||
mv "$GOPATH/bin/forgejo.org" "$GOPATH/bin/gitea"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir $data
|
||||
cp -R ./{templates,options} ${frontend}/public $data
|
||||
@@ -187,7 +191,7 @@ buildGoModule rec {
|
||||
description = "Self-hosted lightweight software forge";
|
||||
homepage = "https://forgejo.org";
|
||||
changelog = "https://codeberg.org/forgejo/forgejo/releases/tag/v${version}";
|
||||
license = if lib.versionAtLeast version "9.0.0" then lib.licenses.gpl3Plus else lib.licenses.mit;
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [
|
||||
emilylange
|
||||
urandom
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import ./generic.nix {
|
||||
version = "7.0.14";
|
||||
hash = "sha256-DtGJStiXuJl0m4K6+DNxsBBaj9dB4bEmMqpGS3WGPD4=";
|
||||
npmDepsHash = "sha256-R78/L6HS8pUNccrctBJ2E8ndS/RBHd+mTvl0JPoxr8Q=";
|
||||
vendorHash = "sha256-18tJJ3dBVR9d7PFBRFtOVVtZAcdKucmbOTXHdk7U89s=";
|
||||
version = "11.0.0";
|
||||
hash = "sha256-j/SmfWFfYDApqGXcH/gRF6c7gUCTkLYFTglgtdq9u/U=";
|
||||
npmDepsHash = "sha256-laHHXq59/7+rJSYTD1Aq/AvFcio6vsnWkeV8enq3yTg=";
|
||||
vendorHash = "sha256-REHrSuvAB5fbJ1WR+rggGZUSMy0FWnAkQQbTIqN2K2E=";
|
||||
lts = true;
|
||||
nixUpdateExtraArgs = [
|
||||
"--override-filename"
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
diff --git a/package.json b/package.json
|
||||
index 0abf6fe8b9..9d6ae0fdff 100644
|
||||
--- a/package.json
|
||||
+++ b/package.json
|
||||
@@ -1,4 +1,7 @@
|
||||
{
|
||||
+ "scripts": {
|
||||
+ "build": "node_modules/.bin/webpack"
|
||||
+ },
|
||||
"type": "module",
|
||||
"engines": {
|
||||
"node": ">= 18.0.0"
|
||||
Reference in New Issue
Block a user