2019-09-04 17:13:50 +01:00
|
|
|
{ stdenv, substituteAll, buildEnv, fetchFromGitHub, python3Packages }:
|
2018-09-06 14:10:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "wee-slack";
|
2020-02-02 16:59:23 +00:00
|
|
|
version = "2.4.0";
|
2018-09-06 14:10:37 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "wee-slack";
|
|
|
|
owner = "wee-slack";
|
|
|
|
rev = "v${version}";
|
2020-02-02 16:59:23 +00:00
|
|
|
sha256 = "0h425ln5vv76zv41dccapyfbl8qmmflbpwmrd26knqyj8k24zfpr";
|
2018-09-06 14:10:37 +01:00
|
|
|
};
|
|
|
|
|
2018-11-15 23:29:48 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./libpath.patch;
|
|
|
|
env = "${buildEnv {
|
|
|
|
name = "wee-slack-env";
|
2019-09-04 17:13:50 +01:00
|
|
|
paths = with python3Packages; [ websocket_client six ];
|
|
|
|
}}/${python3Packages.python.sitePackages}";
|
2018-11-15 23:29:48 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-09-06 14:10:37 +01:00
|
|
|
passthru.scripts = [ "wee_slack.py" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp wee_slack.py $out/share/wee_slack.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/wee-slack/wee-slack;
|
|
|
|
license = licenses.mit;
|
2019-10-19 20:40:04 +01:00
|
|
|
maintainers = with maintainers; [ willibutz ];
|
2018-09-06 14:10:37 +01:00
|
|
|
description = ''
|
|
|
|
A WeeChat plugin for Slack.com. Synchronizes read markers, provides typing notification, search, etc..
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|