diff options
Diffstat (limited to 'machines/profpatsch/xmpp-client.nix')
-rw-r--r-- | machines/profpatsch/xmpp-client.nix | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/machines/profpatsch/xmpp-client.nix b/machines/profpatsch/xmpp-client.nix index 2310e85d..53a007b2 100644 --- a/machines/profpatsch/xmpp-client.nix +++ b/machines/profpatsch/xmpp-client.nix @@ -1,6 +1,17 @@ home: passwordentry: -{ lib, writeScriptBin, xmpp-client, pass }: +{ lib, writeScriptBin, xmpp-client, pass, fetchFromGitHub }: +let + myClient = xmpp-client.overrideDerivation (old: { + src = fetchFromGitHub { + rev = "32cdd273edd354932ce0c5d28d0c4159068bd498"; + owner = "Profpatsch"; + repo = "xmpp-client"; + sha256 = "0ivppc8q2cp0g88dvrlggqipfdz194i7k2irfxq6c0dlzj1638jn"; + }; + }); + +in writeScriptBin "xmpp-client" '' #!/usr/bin/env bash PASS=$(${lib.getBin pass}/bin/pass "${passwordentry}" | head -n1) @@ -14,7 +25,7 @@ writeScriptBin "xmpp-client" '' # execute the client with logging enabled mkdir -p ${home}/.local/share/xmpp-client LOG=${home}/.local/share/xmpp-client/history - CMD="${lib.getBin xmpp-client}/bin/xmpp-client --config-file $TMP" + CMD="${lib.getBin myClient}/bin/xmpp-client --config-file $TMP" script --append --command "$CMD" "$LOG" '' |