2020-04-15 22:13:46 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, go-bindata, go-bindata-assetfs, nixosTests }:
|
2019-03-26 19:04:28 +01:00
|
|
|
|
2019-11-30 19:50:31 +01:00
|
|
|
buildGoModule rec {
|
2019-03-26 19:04:28 +01:00
|
|
|
pname = "documize-community";
|
2020-02-05 19:27:16 +01:00
|
|
|
version = "3.7.0";
|
2019-03-26 19:04:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "documize";
|
|
|
|
repo = "community";
|
|
|
|
rev = "v${version}";
|
2020-02-05 19:27:16 +01:00
|
|
|
sha256 = "1pcldf9lqvpb2h2a3kr3mahj2v1jasjwrszj6czjmkyml7x2sz7c";
|
2019-03-26 19:04:28 +01:00
|
|
|
};
|
|
|
|
|
2019-11-30 19:50:31 +01:00
|
|
|
modSha256 = "1z0v7n8klaxcqv7mvzf3jzgrp78zb4yiibx899ppk6i5qnj4xiv0";
|
2019-03-26 19:04:28 +01:00
|
|
|
|
2020-03-17 18:43:26 +01:00
|
|
|
nativeBuildInputs = [ go-bindata go-bindata-assetfs ];
|
2019-03-26 19:04:28 +01:00
|
|
|
|
2019-11-30 19:50:31 +01:00
|
|
|
subPackages = [ "edition/community.go" ];
|
2019-03-26 19:04:28 +01:00
|
|
|
|
2020-04-15 22:13:46 +02:00
|
|
|
passthru.tests = { inherit (nixosTests) documize; };
|
|
|
|
|
2019-11-30 19:50:31 +01: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 19:04:28 +01:00
|
|
|
'';
|
|
|
|
|
2020-03-27 08:33:21 +01:00
|
|
|
meta = with lib; {
|
2019-03-26 19:04:28 +01:00
|
|
|
description = "Open source Confluence alternative for internal & external docs built with Golang + EmberJS";
|
|
|
|
license = licenses.agpl3;
|
2019-04-27 10:54:37 +02:00
|
|
|
maintainers = with maintainers; [ ma27 elseym ];
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.documize.com/";
|
2019-03-26 19:04:28 +01:00
|
|
|
};
|
|
|
|
}
|