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";
|
2021-04-01 08:05:12 +01:00
|
|
|
version = "3.9.0";
|
2020-05-01 02:59:00 +01:00
|
|
|
|
2019-03-26 18:04:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "documize";
|
|
|
|
repo = "community";
|
2020-11-30 09:35:51 +00:00
|
|
|
rev = "v${version}";
|
2021-04-01 08:05:12 +01:00
|
|
|
sha256 = "sha256-Kv4BsFB08rkGRkePFIkjjuhK1TnLPS4m+PUlgKG5cTQ=";
|
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-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|