40 lines
837 B
Nix
40 lines
837 B
Nix
{
|
|
stdenv
|
|
,fetchFromGitHub
|
|
,lib
|
|
,git
|
|
,pidgin
|
|
,glib
|
|
,json-glib
|
|
,discount # markdown implementation
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "purple-mattermost";
|
|
version = "2.1";
|
|
src = fetchFromGitHub {
|
|
owner = "EionRobb";
|
|
repo = "purple-mattermost";
|
|
rev = "v${version}";
|
|
leaveDotGit = true;
|
|
sha256 = "WX74TqH2KvB7dOjzTVWXrFE+kCs6ojaLATABU6Ggyyo=";
|
|
};
|
|
|
|
PKG_CONFIG_PURPLE_PLUGINDIR = "${placeholder "out"}/lib/purple-2";
|
|
PKG_CONFIG_PURPLE_DATAROOTDIR = "${placeholder "out"}/share";
|
|
|
|
nativeBuildInputs = [
|
|
git
|
|
glib
|
|
json-glib
|
|
discount
|
|
pidgin
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/EionRobb/purple-mattermost";
|
|
description = "Plugin for Pidgin which adds support for Mattermost";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|