2024-01-02 11:29:13 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "writefreely";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.14.0";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-01-02 11:29:13 +00:00
|
|
|
owner = "writefreely";
|
2021-04-05 15:23:46 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-vOoTAr33FMQaHIwpwIX0g/KJWQvDn3oVJg14kEY6FIQ=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-xTo/zbz9pSjvNntr5dnytiJ7oRAdtEuyiu4mJZgwHTc=";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X github.com/writefreely/writefreely.softwareVer=${version}" ];
|
2021-08-08 23:34:03 +00:00
|
|
|
|
|
|
|
tags = [ "sqlite" ];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
subPackages = [ "cmd/writefreely" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Build a digital writing community";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/writefreely/writefreely";
|
2021-04-05 15:23:46 +00:00
|
|
|
license = licenses.agpl3Only;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ soopyc ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "writefreely";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
}
|