1{ lib, buildGoModule, fetchFromGitHub, go-bindata }:
2
3buildGoModule rec {
4 pname = "writefreely";
5 version = "0.13.2";
6
7 src = fetchFromGitHub {
8 owner = "writeas";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-GnuqYgiwXdKM+os5RzuUYe9ADOhZaxou5dD7GCEE1Ns=";
12 };
13
14 vendorHash = "sha256-IBer+8FP+IWWJPnaugr8zzQA9mSVFzP0Nofgl/PhtzQ=";
15
16 nativeBuildInputs = [ go-bindata ];
17
18 preBuild = ''
19 make assets
20 '';
21
22 ldflags = [ "-s" "-w" "-X github.com/writeas/writefreely.softwareVer=${version}" ];
23
24 tags = [ "sqlite" ];
25
26 subPackages = [ "cmd/writefreely" ];
27
28 meta = with lib; {
29 description = "Build a digital writing community";
30 homepage = "https://github.com/writeas/writefreely";
31 license = licenses.agpl3Only;
32 maintainers = with maintainers; [ ];
33 };
34}