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-11-16 14:07:22 +01:00
|
|
|
version = "3.8.1";
|
2020-05-01 03:59:00 +02:00
|
|
|
|
2019-03-26 19:04:28 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "documize";
|
|
|
|
repo = "community";
|
2020-11-16 14:07:22 +01:00
|
|
|
rev = "30d12ba756101a3d360e874cc8fad2a53ec558ed";
|
|
|
|
sha256 = "sha256-URQtOXwMavPD9/9n2YO1Z9Rg/i26gYb53OC8WEpbelk=";
|
2019-03-26 19:04:28 +01:00
|
|
|
};
|
|
|
|
|
2020-05-01 03:59:00 +02:00
|
|
|
vendorSha256 = null;
|
2019-03-26 19:04:28 +01:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-03-17 18:43:26 +01:00
|
|
|
nativeBuildInputs = [ go-bindata go-bindata-assetfs ];
|
2019-03-26 19:04:28 +01:00
|
|
|
|
2020-05-01 03:59:00 +02: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 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 = ''
|
2020-05-01 03:59:00 +02:00
|
|
|
mv $out/bin/edition $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
|
|
|
};
|
|
|
|
}
|