3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/writefreely/default.nix

35 lines
821 B
Nix
Raw Normal View History

2021-03-29 17:47:49 +01:00
{ lib, buildGoModule, fetchFromGitHub, go-bindata }:
buildGoModule rec {
pname = "writefreely";
2021-08-14 08:25:03 +01:00
version = "0.13.1";
2021-03-29 17:47:49 +01:00
src = fetchFromGitHub {
owner = "writeas";
repo = pname;
rev = "v${version}";
2021-08-14 08:25:03 +01:00
sha256 = "sha256-qYceijC/u8G9vr7uhApWWyWD9P65pLJCTjePEvh+oXA=";
2021-03-29 17:47:49 +01:00
};
2021-08-14 08:25:03 +01:00
vendorSha256 = "sha256-CBPvtc3K9hr1oEmC+yUe3kPSWx20k6eMRqoxsf3NfCE=";
2021-03-29 17:47:49 +01:00
nativeBuildInputs = [ go-bindata ];
preBuild = ''
make assets
'';
ldflags = [ "-s" "-w" "-X github.com/writeas/writefreely.softwareVer=${version}" ];
tags = [ "sqlite" ];
2021-03-29 17:47:49 +01:00
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 ];
};
}