nixpkgs-suyu/pkgs/servers/documize-community/default.nix
Maximilian Bosch cdbc6e64e4
treewide: reduce maintenance workload for ma27
Note: I DO NOT resign from nixpkgs, not at all!

However, I like a clean notification inbox and I get a lot of stuff for
packages where I'm only an end-user or don't use them anymore and thus
can't help out that much.

So please consider it a measure to reduce the mental load for me when
going through my notifications ;-)
2022-06-19 12:07:43 +02:00

40 lines
1 KiB
Nix

{ lib, buildGoModule, fetchFromGitHub, go-bindata, go-bindata-assetfs, nixosTests }:
buildGoModule rec {
pname = "documize-community";
version = "3.9.0";
src = fetchFromGitHub {
owner = "documize";
repo = "community";
rev = "v${version}";
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;
maintainers = with maintainers; [ elseym ];
mainProgram = "documize";
homepage = "https://www.documize.com/";
};
}