nixpkgs/pkgs/servers/documize-community/default.nix
Maximilian Bosch 87e65b1949
documize-community: 3.0.0 -> 3.1.0
See https://github.com/documize/community/releases/tag/v3.1.0

As noted in the release notes, frequent releases will be provided to
provide the same features as in managed hosting.
2019-07-05 10:39:04 +02:00

44 lines
1.0 KiB
Nix

{ lib, buildGoPackage, fetchFromGitHub, go-bindata, go-bindata-assetfs }:
buildGoPackage rec {
pname = "documize-community";
version = "3.1.0";
src = fetchFromGitHub {
owner = "documize";
repo = "community";
rev = "v${version}";
sha256 = "1ghdmqcwvbp48dw2w0aka38wfi2a80rmprnaxrjn2j5aplgbkbc5";
};
goPackagePath = "github.com/documize/community";
buildInputs = [ go-bindata-assetfs go-bindata ];
buildPhase = ''
runHook preBuild
pushd go/src/github.com/documize/community
go build -gcflags="all=-trimpath=$GOPATH" -o bin/documize ./edition/community.go
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;
maintainers = with maintainers; [ ma27 elseym ];
homepage = https://www.documize.com/;
};
}