nixpkgs-suyu/pkgs/servers/mattermost/default.nix

30 lines
800 B
Nix
Raw Normal View History

2016-08-15 03:17:05 +02:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "mattermost-${version}";
2017-05-02 00:55:25 +02:00
version = "3.8.2";
2016-08-15 03:17:05 +02:00
src = fetchurl {
url = "https://releases.mattermost.com/${version}/mattermost-team-${version}-linux-amd64.tar.gz";
2017-05-02 00:55:25 +02:00
sha256 = "1rrcasx8yzr48lwznqhkqk4qjfhxq5lnfcl9xiqkh6y2gmaqbk42";
2016-08-15 03:17:05 +02:00
};
installPhase = ''
mkdir -p $out
mv * $out/
ln -s ./platform $out/bin/mattermost-platform
'';
postFixup = ''
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/bin/platform
'';
meta = with stdenv.lib; {
description = "Open-Source, self-hosted Slack-alternative";
homepage = https://www.mattermost.org;
2016-08-15 03:17:05 +02:00
license = with licenses; [ agpl3 asl20 ];
maintainers = with maintainers; [ fpletz ];
platforms = [ "x86_64-linux" ];
};
}