diff --git a/pkgs/servers/web-apps/phylactery/default.nix b/pkgs/servers/web-apps/phylactery/default.nix index 2dfccdabbb98..43c6032f101f 100644 --- a/pkgs/servers/web-apps/phylactery/default.nix +++ b/pkgs/servers/web-apps/phylactery/default.nix @@ -1,22 +1,16 @@ -{ lib, buildGoModule, fetchFromSourcehut, nixosTests }: +{ lib, buildGoModule, fetchzip, nixosTests }: buildGoModule rec { pname = "phylactery"; - version = "0.1.2"; + version = "0.2.0"; - src = fetchFromSourcehut { - owner = "~cnx"; - repo = pname; - rev = version; - hash = "sha256-HQN6wJ/4YeuQaDcNgdHj0RgYnn2NxXGRfxybmv60EdQ="; + src = fetchzip { + url = "https://trong.loang.net/phylactery/snapshot/phylactery-${version}.tar.gz"; + hash = "sha256-UokK6rVjpzbcKOkZteo5kU7rFMm1meBUM4bkYAYM8rI="; }; vendorHash = null; - preBuild = '' - cp ${./go.mod} go.mod - ''; - ldflags = [ "-s" "-w" ]; passthru.tests.phylactery = nixosTests.phylactery; @@ -24,7 +18,7 @@ buildGoModule rec { meta = with lib; { description = "Old school comic web server"; mainProgram = "phylactery"; - homepage = "https://git.sr.ht/~cnx/phylactery"; + homepage = "https://trong.loang.net/phylactery/about"; license = licenses.agpl3Plus; maintainers = with maintainers; [ McSinyx ]; platforms = platforms.all; diff --git a/pkgs/servers/web-apps/phylactery/go.mod b/pkgs/servers/web-apps/phylactery/go.mod deleted file mode 100644 index 4ec9652e23fe..000000000000 --- a/pkgs/servers/web-apps/phylactery/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module git.sr.ht/~cnx/phylactery - -go 1.18