mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
41 lines
1.0 KiB
Nix
41 lines
1.0 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=";
|
|
};
|
|
|
|
vendorHash = 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.agpl3Only;
|
|
maintainers = [ ];
|
|
mainProgram = "documize";
|
|
homepage = "https://www.documize.com/";
|
|
};
|
|
}
|