2023-01-26 23:13:00 +00:00
|
|
|
{ lib, buildGoModule, fetchFromSourcehut, nixosTests }:
|
2022-06-28 06:43:04 +00:00
|
|
|
|
2023-01-26 23:13:00 +00:00
|
|
|
buildGoModule rec {
|
2022-06-28 06:43:04 +00:00
|
|
|
pname = "phylactery";
|
2022-07-04 08:12:11 +00:00
|
|
|
version = "0.1.2";
|
2022-06-28 06:43:04 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~cnx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-01-26 23:13:00 +00:00
|
|
|
hash = "sha256-HQN6wJ/4YeuQaDcNgdHj0RgYnn2NxXGRfxybmv60EdQ=";
|
2022-06-28 06:43:04 +00:00
|
|
|
};
|
|
|
|
|
2023-01-26 23:13:00 +00:00
|
|
|
vendorHash = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cp ${./go.mod} go.mod
|
|
|
|
'';
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2022-06-28 19:17:38 +00:00
|
|
|
passthru.tests.phylactery = nixosTests.phylactery;
|
2022-06-28 06:43:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Old school comic web server";
|
|
|
|
homepage = "https://git.sr.ht/~cnx/phylactery";
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ McSinyx ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|