3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/forgejo/default.nix
Colin Arnott e91a59e1bb
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
2022-12-26 22:28:16 +01:00

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 ];
};
})