2019-03-26 18:04:28 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, go-bindata, go-bindata-assetfs }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "documize-community";
|
2019-11-02 09:35:17 +00:00
|
|
|
version = "3.4.1";
|
2019-03-26 18:04:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "documize";
|
|
|
|
repo = "community";
|
|
|
|
rev = "v${version}";
|
2019-11-02 09:35:17 +00:00
|
|
|
sha256 = "1qbf5c42mf30kc4yrk7mav8hk91v5yjx32h9wirmqkcb9k2lpv7s";
|
2019-03-26 18:04:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/documize/community";
|
|
|
|
|
|
|
|
buildInputs = [ go-bindata-assetfs go-bindata ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
|
|
|
|
pushd go/src/github.com/documize/community
|
2019-09-23 01:14:48 +01:00
|
|
|
GO111MODULE=off go build -gcflags="all=-trimpath=$GOPATH" -o bin/documize ./edition/community.go
|
2019-03-26 18:04:28 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $bin/bin
|
|
|
|
cp go/src/github.com/documize/community/bin/documize $bin/bin
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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/;
|
|
|
|
};
|
|
|
|
}
|