nixpkgs/pkgs/applications/misc/writefreely/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
805 B
Nix
Raw Normal View History

2021-03-29 16:47:49 +00:00
{ lib, buildGoModule, fetchFromGitHub, go-bindata }:
buildGoModule rec {
pname = "writefreely";
2022-11-13 06:50:32 +00:00
version = "0.13.2";
2021-03-29 16:47:49 +00:00
src = fetchFromGitHub {
owner = "writeas";
repo = pname;
rev = "v${version}";
2022-11-13 06:50:32 +00:00
sha256 = "sha256-GnuqYgiwXdKM+os5RzuUYe9ADOhZaxou5dD7GCEE1Ns=";
2021-03-29 16:47:49 +00:00
};
2022-11-13 06:50:32 +00:00
vendorSha256 = "sha256-IBer+8FP+IWWJPnaugr8zzQA9mSVFzP0Nofgl/PhtzQ=";
2021-03-29 16:47:49 +00:00
nativeBuildInputs = [ go-bindata ];
preBuild = ''
make assets
'';
ldflags = [ "-s" "-w" "-X github.com/writeas/writefreely.softwareVer=${version}" ];
tags = [ "sqlite" ];
2021-03-29 16:47:49 +00: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; [ ];
2021-03-29 16:47:49 +00:00
};
}