Unverified Commit cedcbf37 authored by CherryKitten's avatar CherryKitten
Browse files

gotosocial: move to codeberg

parent a54c2613
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
{
  lib,
  fetchurl,
  fetchFromGitHub,
  fetchFromGitea,
  buildGoModule,
  nixosTests,
}:
let
  domain = "codeberg.org";
  owner = "superseriousbusiness";
  repo = "gotosocial";

  version = "0.19.0";

  web-assets = fetchurl {
    url = "https://github.com/${owner}/${repo}/releases/download/v${version}/${repo}_${version}_web-assets.tar.gz";
    url = "https://${domain}/${owner}/${repo}/releases/download/v${version}/${repo}_${version}_web-assets.tar.gz";
    hash = "sha256-Ba497VKK30MWcLlR4CDDUrFZKWf/UXiSgeDr/f7fFkc=";
  };
in
@@ -20,8 +21,8 @@ buildGoModule rec {
  inherit version;
  pname = repo;

  src = fetchFromGitHub {
    inherit owner repo;
  src = fetchFromGitea {
    inherit domain owner repo;
    tag = "v${version}";
    hash = "sha256-ioIsa2L1w4z1b7tWFhHScmPwRRq0WLngIdm4r2eCveM=";
  };
@@ -63,7 +64,7 @@ buildGoModule rec {

  meta = with lib; {
    homepage = "https://gotosocial.org";
    changelog = "https://github.com/superseriousbusiness/gotosocial/releases/tag/v${version}";
    changelog = "https://codeberg.org/superseriousbusiness/gotosocial/releases/tag/v${version}";
    description = "Fast, fun, ActivityPub server, powered by Go";
    longDescription = ''
      ActivityPub social network server, written in Golang.