2023-02-02 18:25:31 +00:00
|
|
|
{ lib, buildGoModule, fetchFromSourcehut, nixosTests }:
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
buildGoModule rec {
|
2022-07-14 12:49:19 +00:00
|
|
|
pname = "phylactery";
|
|
|
|
version = "0.1.2";
|
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~cnx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-HQN6wJ/4YeuQaDcNgdHj0RgYnn2NxXGRfxybmv60EdQ=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
vendorHash = null;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cp ${./go.mod} go.mod
|
|
|
|
'';
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
passthru.tests.phylactery = nixosTests.phylactery;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Old school comic web server";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "phylactery";
|
2022-07-14 12:49:19 +00:00
|
|
|
homepage = "https://git.sr.ht/~cnx/phylactery";
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ McSinyx ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|