nixpkgs/pkgs/servers/documize-community/default.nix

38 lines
1015 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, go-bindata, go-bindata-assetfs, nixosTests }:
buildGoModule rec {
pname = "documize-community";
version = "3.8.0";
src = fetchFromGitHub {
owner = "documize";
repo = "community";
rev = "v${version}";
sha256 = "0jrqab0c2nnw8632g1f6zll3dycn7xyk01ycmn969i5qxx70am50";
};
vendorSha256 = null;
nativeBuildInputs = [ go-bindata go-bindata-assetfs ];
# 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 = [ "." ];
passthru.tests = { inherit (nixosTests) documize; };
postInstall = ''
mv $out/bin/edition $out/bin/documize
'';
meta = with lib; {
description = "Open source Confluence alternative for internal & external docs built with Golang + EmberJS";
license = licenses.agpl3;
2019-04-27 08:54:37 +00:00
maintainers = with maintainers; [ ma27 elseym ];
homepage = "https://www.documize.com/";
};
}