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-11-16 13:07:22 +00:00
|
|
|
version = "3.8.1";
|
2020-05-01 02:59:00 +01:00
|
|
|
|
2019-03-26 18:04:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "documize";
|
|
|
|
repo = "community";
|
2020-11-16 13:07:22 +00:00
|
|
|
rev = "30d12ba756101a3d360e874cc8fad2a53ec558ed";
|
|
|
|
sha256 = "sha256-URQtOXwMavPD9/9n2YO1Z9Rg/i26gYb53OC8WEpbelk=";
|
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
|
|
|
};
|
|
|
|
}
|