nixpkgs/pkgs/applications/misc/writefreely/default.nix
2021-08-14 07:25:03 +00:00

35 lines
821 B
Nix

{ lib, buildGoModule, fetchFromGitHub, go-bindata }:
buildGoModule rec {
pname = "writefreely";
version = "0.13.1";
src = fetchFromGitHub {
owner = "writeas";
repo = pname;
rev = "v${version}";
sha256 = "sha256-qYceijC/u8G9vr7uhApWWyWD9P65pLJCTjePEvh+oXA=";
};
vendorSha256 = "sha256-CBPvtc3K9hr1oEmC+yUe3kPSWx20k6eMRqoxsf3NfCE=";
nativeBuildInputs = [ go-bindata ];
preBuild = ''
make assets
'';
ldflags = [ "-s" "-w" "-X github.com/writeas/writefreely.softwareVer=${version}" ];
tags = [ "sqlite" ];
subPackages = [ "cmd/writefreely" ];
meta = with lib; {
description = "Build a digital writing community";
homepage = "https://github.com/writeas/writefreely";
license = licenses.agpl3Only;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}