diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/web-apps/phylactery/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/web-apps/phylactery/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/web-apps/phylactery/default.nix b/nixpkgs/pkgs/servers/web-apps/phylactery/default.nix new file mode 100644 index 000000000000..b200ae637f56 --- /dev/null +++ b/nixpkgs/pkgs/servers/web-apps/phylactery/default.nix @@ -0,0 +1,31 @@ +{ 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"; + homepage = "https://git.sr.ht/~cnx/phylactery"; + license = licenses.agpl3Plus; + maintainers = with maintainers; [ McSinyx ]; + platforms = platforms.all; + }; +} |