mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
[Backport release 24.11] forgejo: 10.0.3 -> 11.0.0 (#399846)
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 = lib.optionalString (lib.versionAtLeast version "11") ''
|
||||
mv "$GOPATH/bin/forgejo.org" "$GOPATH/bin/gitea"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir $data
|
||||
cp -R ./{templates,options} ${frontend}/public $data
|
||||
|
||||
@@ -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"
|
||||
@@ -1,8 +1,8 @@
|
||||
import ./generic.nix {
|
||||
version = "10.0.3";
|
||||
hash = "sha256-bt1lgp6UiZeiZiIN3vZZbUygHVX1lEE5uOkPXrjk68o=";
|
||||
npmDepsHash = "sha256-e3SE6cu1xCBdoMRqp2Gcjcay/EwjF+bTdPOlpL1STvw=";
|
||||
vendorHash = "sha256-b3+zxsKRylgfdW0Yiz0QryObMKdtiMCt0hB3DtAGFrQ=";
|
||||
version = "11.0.0";
|
||||
hash = "sha256-j/SmfWFfYDApqGXcH/gRF6c7gUCTkLYFTglgtdq9u/U=";
|
||||
npmDepsHash = "sha256-laHHXq59/7+rJSYTD1Aq/AvFcio6vsnWkeV8enq3yTg=";
|
||||
vendorHash = "sha256-REHrSuvAB5fbJ1WR+rggGZUSMy0FWnAkQQbTIqN2K2E=";
|
||||
lts = false;
|
||||
nixUpdateExtraArgs = [
|
||||
"--override-filename"
|
||||
|
||||
@@ -1372,6 +1372,10 @@ with pkgs;
|
||||
|
||||
datalad-gooey = with python3Packages; toPythonApplication datalad-gooey;
|
||||
|
||||
forgejo = callPackage ../by-name/fo/forgejo/package.nix {
|
||||
buildGoModule = buildGo124Module;
|
||||
};
|
||||
|
||||
forgejo-lts = callPackage ../by-name/fo/forgejo/lts.nix { };
|
||||
|
||||
gfold = callPackage ../applications/version-management/gfold { };
|
||||
|
||||
Reference in New Issue
Block a user