From e1b59d57ff0754af1f889774d65502cbd2b1777f Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 15 Jun 2021 19:20:25 +0200 Subject: [PATCH] fuuko/mautrix-whatsapp: Use unstable version from PR nixpkgs PR: https://github.com/NixOS/nixpkgs/pull/126966 --- machines/fuuko/services/matrix/mautrix-whatsapp.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/machines/fuuko/services/matrix/mautrix-whatsapp.nix b/machines/fuuko/services/matrix/mautrix-whatsapp.nix index 2df32f7..d8c0e13 100644 --- a/machines/fuuko/services/matrix/mautrix-whatsapp.nix +++ b/machines/fuuko/services/matrix/mautrix-whatsapp.nix @@ -1,6 +1,15 @@ # somewhat adapted from https://github.com/NixOS/nixpkgs/pull/59211 { config, lib, pkgs, ... }: let + nixpkgsMa27 = import + (pkgs.fetchFromGitHub { + owner = "Ma27"; + repo = "nixpkgs"; + rev = "5c7156faf1c766166d663a68e666678992ca2b2a"; + sha256 = "0jj9slwrpzxm88cqz7qy2v92828wsiqhrr32alix5mq7xhfyblg0"; + }) + { inherit (pkgs) system; }; + synapseCfg = config.services.matrix-synapse; in let @@ -83,7 +92,7 @@ in serviceConfig = { DynamicUser = true; StateDirectory = "mautrix-whatsapp"; - ExecStart = "${pkgs.mautrix-whatsapp}/bin/mautrix-whatsapp -c ${generatedConfig}/config.yaml"; + ExecStart = "${nixpkgsMa27.mautrix-whatsapp}/bin/mautrix-whatsapp -c ${generatedConfig}/config.yaml"; Restart = "on-failure"; }; };