Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 56 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 replaceVars, 5 buildEnv, 6 fetchFromGitHub, 7 python3Packages, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "wee-slack"; 12 version = "2.11.0"; 13 14 src = fetchFromGitHub { 15 repo = "wee-slack"; 16 owner = "wee-slack"; 17 rev = "v${version}"; 18 sha256 = "sha256-xQO/yi4pJSnO/ldzVQkC7UhAfpy57xzO58NV7KZm4E8="; 19 }; 20 21 patches = [ 22 (replaceVars ./libpath.patch { 23 env = "${ 24 buildEnv { 25 name = "wee-slack-env"; 26 paths = with python3Packages; [ 27 websocket-client 28 six 29 ]; 30 } 31 }/${python3Packages.python.sitePackages}"; 32 }) 33 ./load_weemoji_path.patch 34 ]; 35 36 postPatch = '' 37 substituteInPlace wee_slack.py --subst-var out 38 ''; 39 40 passthru.scripts = [ "wee_slack.py" ]; 41 42 installPhase = '' 43 mkdir -p $out/share 44 cp wee_slack.py $out/share/wee_slack.py 45 install -D -m 0444 weemoji.json $out/share/wee-slack/weemoji.json 46 ''; 47 48 meta = with lib; { 49 homepage = "https://github.com/wee-slack/wee-slack"; 50 license = licenses.mit; 51 maintainers = [ ]; 52 description = '' 53 A WeeChat plugin for Slack.com. Synchronizes read markers, provides typing notification, search, etc.. 54 ''; 55 }; 56}