mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
38 lines
1015 B
Nix
38 lines
1015 B
Nix
{ 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;
|
|
maintainers = with maintainers; [ ma27 elseym ];
|
|
homepage = "https://www.documize.com/";
|
|
};
|
|
}
|