about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorColin Arnott <colin@urandom.co.uk>2022-12-26 21:28:16 +0000
committerGitHub <noreply@github.com>2022-12-26 22:28:16 +0100
commite91a59e1bbf0d9cf2f70acc9d42f59daf52a19d5 (patch)
tree5a58adfc392dc63c78e9922c07f855ad08c66e2c /pkgs/applications
parent30c0633f3cc0640d63aa73a2801374d8b1b0e033 (diff)
forgejo: init at 1.18.0-rc1-1 (#207796)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Fixes https://github.com/NixOS/nixpkgs/issues/207601
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/version-management/forgejo/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/forgejo/default.nix b/pkgs/applications/version-management/forgejo/default.nix
new file mode 100644
index 0000000000000..2cc8bb3c816a3
--- /dev/null
+++ b/pkgs/applications/version-management/forgejo/default.nix
@@ -0,0 +1,25 @@
+{ fetchurl, gitea, lib }:
+
+gitea.overrideAttrs (old: rec {
+  pname = "forgejo";
+  version = "1.18.0-rc1-1";
+
+  src = fetchurl {
+    name = "${pname}-src-${version}.tar.gz";
+    # see https://codeberg.org/forgejo/forgejo/releases
+    url = "https://codeberg.org/attachments/976c426a-3e04-49ff-9762-47fab50624a3";
+    hash = "sha256-kreBMHlMVB1UeG67zMbszGrgjaROateCRswH7GrKnEw=";
+  };
+
+  postInstall = old.postInstall or "" + ''
+    mv $out/bin/{${old.pname},${pname}}
+  '';
+
+  meta = with lib; {
+    description = "A self-hosted lightweight software forge";
+    homepage = "https://forgejo.org";
+    changelog = "https://codeberg.org/forgejo/forgejo/releases/tag/v${version}";
+    license = licenses.mit;
+    maintainers = with maintainers; [ urandom ];
+  };
+})