2020-03-27 07:33:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, go-bindata, go-bindata-assetfs }:
|
2019-03-26 18:04:28 +00:00
|
|
|
|
2019-11-30 18:50:31 +00:00
|
|
|
buildGoModule rec {
|
2019-03-26 18:04:28 +00:00
|
|
|
pname = "documize-community";
|
2020-02-05 18:27:16 +00:00
|
|
|
version = "3.7.0";
|
2019-03-26 18:04:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "documize";
|
|
|
|
repo = "community";
|
|
|
|
rev = "v${version}";
|
2020-02-05 18:27:16 +00:00
|
|
|
sha256 = "1pcldf9lqvpb2h2a3kr3mahj2v1jasjwrszj6czjmkyml7x2sz7c";
|
2019-03-26 18:04:28 +00:00
|
|
|
};
|
|
|
|
|
2019-11-30 18:50:31 +00:00
|
|
|
modSha256 = "1z0v7n8klaxcqv7mvzf3jzgrp78zb4yiibx899ppk6i5qnj4xiv0";
|
2019-03-26 18:04:28 +00:00
|
|
|
|
2020-03-17 17:43:26 +00:00
|
|
|
nativeBuildInputs = [ go-bindata go-bindata-assetfs ];
|
2019-03-26 18:04:28 +00:00
|
|
|
|
2019-11-30 18:50:31 +00:00
|
|
|
subPackages = [ "edition/community.go" ];
|
2019-03-26 18:04:28 +00:00
|
|
|
|
2019-11-30 18:50:31 +00:00
|
|
|
postInstall = ''
|
|
|
|
# `buildGoModule` calls `go install` (without `go build` first), so
|
|
|
|
# `-o bin/documize` doesn't work.
|
|
|
|
mv $out/bin/community $out/bin/documize
|
2019-03-26 18:04:28 +00:00
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-03-26 18:04:28 +00:00
|
|
|
description = "Open source Confluence alternative for internal & external docs built with Golang + EmberJS";
|
|
|
|
license = licenses.agpl3;
|
2019-04-27 09:54:37 +01:00
|
|
|
maintainers = with maintainers; [ ma27 elseym ];
|
2019-03-26 18:04:28 +00:00
|
|
|
homepage = https://www.documize.com/;
|
|
|
|
};
|
|
|
|
}
|