2023-12-24 17:42:19 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-03-29 16:47:49 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "writefreely";
|
2023-12-24 17:42:19 +00:00
|
|
|
version = "0.14.0";
|
2021-03-29 16:47:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-12-24 17:42:19 +00:00
|
|
|
owner = "writefreely";
|
2021-03-29 16:47:49 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-12-24 17:42:19 +00:00
|
|
|
sha256 = "sha256-vOoTAr33FMQaHIwpwIX0g/KJWQvDn3oVJg14kEY6FIQ=";
|
2021-03-29 16:47:49 +00:00
|
|
|
};
|
|
|
|
|
2023-12-24 17:42:19 +00:00
|
|
|
vendorHash = "sha256-xTo/zbz9pSjvNntr5dnytiJ7oRAdtEuyiu4mJZgwHTc=";
|
2021-03-29 16:47:49 +00:00
|
|
|
|
2023-12-24 17:42:19 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X github.com/writefreely/writefreely.softwareVer=${version}" ];
|
2021-08-07 04:57:59 +00:00
|
|
|
|
|
|
|
tags = [ "sqlite" ];
|
|
|
|
|
2021-03-29 16:47:49 +00:00
|
|
|
subPackages = [ "cmd/writefreely" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Build a digital writing community";
|
2023-12-24 17:42:19 +00:00
|
|
|
homepage = "https://github.com/writefreely/writefreely";
|
2021-03-29 16:47:49 +00:00
|
|
|
license = licenses.agpl3Only;
|
2023-12-27 07:59:08 +00:00
|
|
|
maintainers = with maintainers; [ soopyc ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "writefreely";
|
2021-03-29 16:47:49 +00:00
|
|
|
};
|
|
|
|
}
|