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";
|
2019-06-05 21:17:24 +01:00
|
|
|
version = "2.3.0";
|
2018-09-06 14:10:37 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "wee-slack";
|
|
|
|
owner = "wee-slack";
|
|
|
|
rev = "v${version}";
|
2019-06-05 21:17:24 +01:00
|
|
|
sha256 = "0544j6vqbvb2xshq7ma2a3apx2vvpgfg3jh5prg265wnh4991nsw";
|
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;
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
description = ''
|
|
|
|
A WeeChat plugin for Slack.com. Synchronizes read markers, provides typing notification, search, etc..
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|