2021-03-29 16:47:49 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, go-bindata }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "writefreely";
|
2022-11-13 06:50:32 +00:00
|
|
|
version = "0.13.2";
|
2021-03-29 16:47:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "writeas";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-13 06:50:32 +00:00
|
|
|
sha256 = "sha256-GnuqYgiwXdKM+os5RzuUYe9ADOhZaxou5dD7GCEE1Ns=";
|
2021-03-29 16:47:49 +00:00
|
|
|
};
|
|
|
|
|
2022-11-13 06:50:32 +00:00
|
|
|
vendorSha256 = "sha256-IBer+8FP+IWWJPnaugr8zzQA9mSVFzP0Nofgl/PhtzQ=";
|
2021-03-29 16:47:49 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ go-bindata ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
make assets
|
|
|
|
'';
|
|
|
|
|
2021-08-07 04:57:59 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X github.com/writeas/writefreely.softwareVer=${version}" ];
|
|
|
|
|
|
|
|
tags = [ "sqlite" ];
|
|
|
|
|
2021-03-29 16:47:49 +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-22 23:30:21 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-03-29 16:47:49 +00:00
|
|
|
};
|
|
|
|
}
|