2024-01-02 11:29:13 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "writefreely";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.15.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-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-7KTNimthtfmQCgyXevAEj+CZ2MS+uOby73OO1fGNXfs=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-6RTshhxX+w/gdK53wCHVMpm6EkkRtEJ2/Fe7MfZ0WvY=";
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-go-version-error.patch
|
|
|
|
];
|
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
|
|
|
};
|
|
|
|
}
|