nixpkgs-suyu/pkgs/servers/documize-community/default.nix
Maximilian Bosch 8331ba3550
documize-community: 3.5.0 -> 3.5.1
https://github.com/documize/community/releases/tag/v3.5.1

This patch also switches to a `go.mod`-based build as upstream already
switched to it a while ago[1].

[1] b826852137
2019-11-30 19:54:43 +01:00

32 lines
936 B
Nix

{ lib, buildGoModule, fetchFromGitHub, go-bindata, go-bindata-assetfs }:
buildGoModule rec {
pname = "documize-community";
version = "3.5.1";
src = fetchFromGitHub {
owner = "documize";
repo = "community";
rev = "v${version}";
sha256 = "1dnb5b24x50c258fk47i7vngv28gai0mywns6nvgm3q59zyzphbj";
};
modSha256 = "1z0v7n8klaxcqv7mvzf3jzgrp78zb4yiibx899ppk6i5qnj4xiv0";
buildInputs = [ go-bindata-assetfs go-bindata ];
subPackages = [ "edition/community.go" ];
postInstall = ''
# `buildGoModule` calls `go install` (without `go build` first), so
# `-o bin/documize` doesn't work.
mv $out/bin/community $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/;
};
}