depot/third_party/nixpkgs/pkgs/applications/misc/writefreely/default.nix
Default email b6f2ab0a42 Project import generated by Copybara.
GitOrigin-RevId: 253aecf69ed7595aaefabde779aa6449195bebb7
2021-08-18 15:19:15 +02:00

34 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 ];
};
}