26 lines
761 B
Nix
26 lines
761 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
})
|