1{ lib, buildGoModule, fetchFromGitHub, go-bindata }:
2
3buildGoModule rec {
4 pname = "writefreely";
5 version = "0.13.1";
6
7 src = fetchFromGitHub {
8 owner = "writeas";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-qYceijC/u8G9vr7uhApWWyWD9P65pLJCTjePEvh+oXA=";
12 };
13
14 vendorSha256 = "sha256-CBPvtc3K9hr1oEmC+yUe3kPSWx20k6eMRqoxsf3NfCE=";
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; [ SuperSandro2000 ];
33 };
34}