You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
3 years ago
|
{ lib, stdenv, substituteAll, buildEnv, fetchFromGitHub, python3Packages }:
|
||
6 years ago
|
|
||
|
stdenv.mkDerivation rec {
|
||
5 years ago
|
pname = "wee-slack";
|
||
3 years ago
|
version = "2.8.0";
|
||
6 years ago
|
|
||
|
src = fetchFromGitHub {
|
||
|
repo = "wee-slack";
|
||
|
owner = "wee-slack";
|
||
|
rev = "v${version}";
|
||
3 years ago
|
sha256 = "0xfklr0gsc9jgxfyrrb2j756lclz9g8imcb0pk0xgyj8mhsw23zk";
|
||
6 years ago
|
};
|
||
|
|
||
6 years ago
|
patches = [
|
||
|
(substituteAll {
|
||
|
src = ./libpath.patch;
|
||
|
env = "${buildEnv {
|
||
|
name = "wee-slack-env";
|
||
3 years ago
|
paths = with python3Packages; [
|
||
|
websocket_client
|
||
|
six
|
||
|
];
|
||
5 years ago
|
}}/${python3Packages.python.sitePackages}";
|
||
6 years ago
|
})
|
||
3 years ago
|
./load_weemoji_path.patch
|
||
6 years ago
|
];
|
||
|
|
||
4 years ago
|
postPatch = ''
|
||
|
substituteInPlace wee_slack.py --subst-var out
|
||
|
'';
|
||
|
|
||
6 years ago
|
passthru.scripts = [ "wee_slack.py" ];
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/share
|
||
|
cp wee_slack.py $out/share/wee_slack.py
|
||
4 years ago
|
install -D -m 0444 weemoji.json $out/share/wee-slack/weemoji.json
|
||
6 years ago
|
'';
|
||
|
|
||
3 years ago
|
meta = with lib; {
|
||
4 years ago
|
homepage = "https://github.com/wee-slack/wee-slack";
|
||
6 years ago
|
license = licenses.mit;
|
||
5 years ago
|
maintainers = with maintainers; [ willibutz ];
|
||
6 years ago
|
description = ''
|
||
|
A WeeChat plugin for Slack.com. Synchronizes read markers, provides typing notification, search, etc..
|
||
|
'';
|
||
|
};
|
||
|
}
|