2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, go-bindata, go-bindata-assetfs, nixosTests }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "documize-community";
|
2021-04-05 15:23:46 +00:00
|
|
|
version = "3.9.0";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "documize";
|
|
|
|
repo = "community";
|
2020-12-03 08:41:04 +00:00
|
|
|
rev = "v${version}";
|
2021-04-05 15:23:46 +00:00
|
|
|
sha256 = "sha256-Kv4BsFB08rkGRkePFIkjjuhK1TnLPS4m+PUlgKG5cTQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
vendorSha256 = null;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ go-bindata go-bindata-assetfs ];
|
|
|
|
|
2020-05-15 21:57:56 +00: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 = [ "." ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests) documize; };
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-05-15 21:57:56 +00:00
|
|
|
mv $out/bin/edition $out/bin/documize
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open source Confluence alternative for internal & external docs built with Golang + EmberJS";
|
|
|
|
license = licenses.agpl3;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "documize";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.documize.com/";
|
|
|
|
};
|
|
|
|
}
|