blob: 2dfccdabbb985c983818f3c3362a468412b329cf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ lib, buildGoModule, fetchFromSourcehut, nixosTests }:
buildGoModule rec {
pname = "phylactery";
version = "0.1.2";
src = fetchFromSourcehut {
owner = "~cnx";
repo = pname;
rev = version;
hash = "sha256-HQN6wJ/4YeuQaDcNgdHj0RgYnn2NxXGRfxybmv60EdQ=";
};
vendorHash = null;
preBuild = ''
cp ${./go.mod} go.mod
'';
ldflags = [ "-s" "-w" ];
passthru.tests.phylactery = nixosTests.phylactery;
meta = with lib; {
description = "Old school comic web server";
mainProgram = "phylactery";
homepage = "https://git.sr.ht/~cnx/phylactery";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ McSinyx ];
platforms = platforms.all;
};
}
|