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-30 10:35:51 +01:00
|
|
|
version = "3.8.2";
|
2020-05-01 03:59:00 +02:00
|
|
|
|
2019-03-26 19:04:28 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "documize";
|
|
|
|
repo = "community";
|
2020-11-30 10:35:51 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-6DOvInfD32/mEILGXdXUeflmHoyn0eiYyQN/aI23FJ0=";
|
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
|
|
|
};
|
|
|
|
}
|