about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/documize-community/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/documize-community/default.nix')
-rw-r--r--nixpkgs/pkgs/servers/documize-community/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/documize-community/default.nix b/nixpkgs/pkgs/servers/documize-community/default.nix
new file mode 100644
index 000000000000..9a6580353fc2
--- /dev/null
+++ b/nixpkgs/pkgs/servers/documize-community/default.nix
@@ -0,0 +1,37 @@
+{ 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/";
+  };
+}