nixpkgs/pkgs/servers/web-apps/phylactery/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
726 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromSourcehut, nixosTests }:
2022-06-28 06:43:04 +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;
hash = "sha256-HQN6wJ/4YeuQaDcNgdHj0RgYnn2NxXGRfxybmv60EdQ=";
2022-06-28 06:43:04 +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;
};
}