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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, go-bindata, go-bindata-assetfs, nixosTests }:
buildGoModule rec {
pname = "documize-community";
2021-04-01 09:05:12 +02:00
version = "3.9.0";
src = fetchFromGitHub {
owner = "documize";
repo = "community";
rev = "v${version}";
2021-04-01 09:05:12 +02:00
sha256 = "sha256-Kv4BsFB08rkGRkePFIkjjuhK1TnLPS4m+PUlgKG5cTQ=";
};
vendorSha256 = null;
doCheck = false;
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 10:54:37 +02:00
maintainers = with maintainers; [ ma27 elseym ];
mainProgram = "documize";
homepage = "https://www.documize.com/";
};
}