2021-04-05 15:23:46 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, go-bindata }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "writefreely";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "0.13.1";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "writeas";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "sha256-qYceijC/u8G9vr7uhApWWyWD9P65pLJCTjePEvh+oXA=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
vendorSha256 = "sha256-CBPvtc3K9hr1oEmC+yUe3kPSWx20k6eMRqoxsf3NfCE=";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ go-bindata ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
make assets
|
|
|
|
'';
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X github.com/writeas/writefreely.softwareVer=${version}" ];
|
|
|
|
|
|
|
|
tags = [ "sqlite" ];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
subPackages = [ "cmd/writefreely" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Build a digital writing community";
|
|
|
|
homepage = "https://github.com/writeas/writefreely";
|
|
|
|
license = licenses.agpl3Only;
|
2022-11-27 09:42:12 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
}
|