2020-04-15 21:13:46 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, go-bindata, go-bindata-assetfs, nixosTests }:
|
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-05-22 01:08:58 +01:00
|
|
|
version = "3.8.0";
|
2020-05-01 02:59:00 +01:00
|
|
|
|
2019-03-26 18:04:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "documize";
|
|
|
|
repo = "community";
|
|
|
|
rev = "v${version}";
|
2020-05-22 01:08:58 +01:00
|
|
|
sha256 = "0jrqab0c2nnw8632g1f6zll3dycn7xyk01ycmn969i5qxx70am50";
|
2019-03-26 18:04:28 +00:00
|
|
|
};
|
|
|
|
|
2020-05-01 02:59:00 +01:00
|
|
|
vendorSha256 = null;
|
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
|
|
|
|
2020-05-01 02:59:00 +01:00
|
|
|
# This is really weird, but they've managed to screw up
|
|
|
|
# their folder structure enough, you can only build by
|
|
|
|
# literally cding into this folder.
|
|
|
|
preBuild = "cd edition";
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
2019-03-26 18:04:28 +00:00
|
|
|
|
2020-04-15 21:13:46 +01:00
|
|
|
passthru.tests = { inherit (nixosTests) documize; };
|
|
|
|
|
2019-11-30 18:50:31 +00:00
|
|
|
postInstall = ''
|
2020-05-01 02:59:00 +01:00
|
|
|
mv $out/bin/edition $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 ];
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.documize.com/";
|
2019-03-26 18:04:28 +00:00
|
|
|
};
|
|
|
|
}
|