h: add weepushover weechat plugin
This commit is contained in:
parent
935c5b892b
commit
cea8d371fe
@ -6,6 +6,8 @@ let
|
||||
gqrss = callPackage ../../pkgs/gqrss.nix { inherit isUnstable; };
|
||||
icbirc = callPackage ../../pkgs/icbirc.nix { inherit isUnstable; };
|
||||
mcchunkie = callPackage ../../pkgs/mcchunkie.nix { inherit isUnstable; };
|
||||
weepushover =
|
||||
python3Packages.callPackage ../../pkgs/weepushover.nix { inherit pkgs; };
|
||||
pgBackupDir = "/var/backups/postgresql";
|
||||
pubKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIITjFpmWZVWixv2i9902R+g5B8umVhaqmjYEKs2nF3Lu qbit@tal.tapenet.org"
|
||||
@ -14,7 +16,10 @@ let
|
||||
];
|
||||
userBase = { openssh.authorizedKeys.keys = pubKeys; };
|
||||
icbIrcTunnel = pkgs.writeScriptBin "icb-irc-tunnel"
|
||||
(import ../../bins/icb-irc-tunnel.nix { inherit pkgs; inherit icbirc; });
|
||||
(import ../../bins/icb-irc-tunnel.nix {
|
||||
inherit pkgs;
|
||||
inherit icbirc;
|
||||
});
|
||||
|
||||
in {
|
||||
_module.args.isUnstable = true;
|
||||
@ -36,7 +41,7 @@ in {
|
||||
(self: super: {
|
||||
weechat = super.weechat.override {
|
||||
configure = { availablePlugins, ... }: {
|
||||
scripts = with super.weechatScripts; [ highmon ];
|
||||
scripts = with super.weechatScripts; [ highmon weepushover ];
|
||||
};
|
||||
};
|
||||
})
|
||||
|
41
pkgs/weepushover.nix
Normal file
41
pkgs/weepushover.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{ pkgs, buildPythonPackage, lib, stdenv, fetchurl, python, weechat }:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "weepushover";
|
||||
version = "0.1";
|
||||
|
||||
src = fetchurl {
|
||||
url =
|
||||
"https://raw.githubusercontent.com/weechat/scripts/77a0c0bf2b0da64c33a50d8f8514d0467b0569e4/python/weepushover.py";
|
||||
hash = "sha256-msOdNfYg88Wq00UJIRNu1OjKSUO0Kfq5rvLbIET2eo4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ ];
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
passthru.scripts = [ "weepushover.py" ];
|
||||
|
||||
dontBuild = true;
|
||||
doCheck = false;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -D $src $out/share/weepushover.py
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
dontPatchShebangs = true;
|
||||
postFixup = ''
|
||||
addToSearchPath program_PYTHONPATH $out/${python.sitePackages}
|
||||
patchPythonScript $out/share/weepushover.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
inherit (weechat.meta) platforms;
|
||||
homepage = "" "https://github.com/adtac/weepushover";
|
||||
description = "push notifications from weechat to pushover";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ qbit ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user