forked from mirrors/nixpkgs
689a50f3a2
WeeChat also supports Python3 for scripts which should be preferred as CPython2 is about to get EOLed soon: https://weechat.org/scripts/python3/
40 lines
1,006 B
Nix
40 lines
1,006 B
Nix
{ stdenv, substituteAll, buildEnv, fetchFromGitHub, python3Packages }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wee-slack";
|
|
version = "2.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "wee-slack";
|
|
owner = "wee-slack";
|
|
rev = "v${version}";
|
|
sha256 = "0544j6vqbvb2xshq7ma2a3apx2vvpgfg3jh5prg265wnh4991nsw";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./libpath.patch;
|
|
env = "${buildEnv {
|
|
name = "wee-slack-env";
|
|
paths = with python3Packages; [ websocket_client six ];
|
|
}}/${python3Packages.python.sitePackages}";
|
|
})
|
|
];
|
|
|
|
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..
|
|
'';
|
|
};
|
|
}
|