diff options
Diffstat (limited to 'machines/profpatsch')
-rw-r--r-- | machines/profpatsch/pkgs.nix | 3 | ||||
-rw-r--r-- | machines/profpatsch/xmpp-client.nix | 31 |
2 files changed, 0 insertions, 34 deletions
diff --git a/machines/profpatsch/pkgs.nix b/machines/profpatsch/pkgs.nix index 4919a808..24d089c0 100644 --- a/machines/profpatsch/pkgs.nix +++ b/machines/profpatsch/pkgs.nix @@ -69,8 +69,6 @@ let sha256 = "03006xzs250knzcyr6j564kn9jf2a6cp3mxkpqsqmmyp6v28w90z"; })}/overrides.nix") {}; - xmpp-client = pkgs.callPackage (import ./xmpp-client.nix myLib.philip.home "irc/xmppOla.wtf") { inherit (pkgs) xmpp-client; }; - # searx = pkgs.searx.overrideAttrs (old: { # propagatedBuildInputs = old.propagatedBuildInputs ++ [ pythonPackages.pyxdg ]; # patches = old.patches or [] ++ [ @@ -111,7 +109,6 @@ in poezio vim fast-init - xmpp-client saneGhci /*searx*/ pyrnotify diff --git a/machines/profpatsch/xmpp-client.nix b/machines/profpatsch/xmpp-client.nix deleted file mode 100644 index f960dd29..00000000 --- a/machines/profpatsch/xmpp-client.nix +++ /dev/null @@ -1,31 +0,0 @@ -home: passwordentry: -{ lib, writeScriptBin, xmpp-client, pass, fetchFromGitHub }: - -let - myClient = xmpp-client.overrideDerivation (old: { - src = fetchFromGitHub { - rev = "785ad1629930bab03a73cc858951db1f78156743"; - owner = "Profpatsch"; - repo = "xmpp-client"; - sha256 = "02nlx5kx0s1rz9rsyncgi9hmb62i1pl322a91ama4sm00qbi4fs7"; - }; - }); - -in -writeScriptBin "xmpp-client" '' - #!/usr/bin/env bash - PASS=$(${lib.getBin pass}/bin/pass "${passwordentry}" | head -n1) - - # pipe config with password in fifo - TMP="$(mktemp -d)/fifo" - mkfifo "$TMP" - sed "s/@PASS@/$PASS/" ${home}/.config/xmpp-client/config > "$TMP" & - - - # execute the client with logging enabled - mkdir -p ${home}/.local/share/xmpp-client - LOG=${home}/.local/share/xmpp-client/history - CMD="${lib.getBin myClient}/bin/xmpp-client --config-file $TMP" - script --append --command "$CMD" "$LOG" -'' - |