diff --git a/nixos/tests/evcc.nix b/nixos/tests/evcc.nix index b445735ede98..7ebdc6a6f5ab 100644 --- a/nixos/tests/evcc.nix +++ b/nixos/tests/evcc.nix @@ -46,7 +46,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : type = "custom"; status = { source = "script"; - cmd = "/bin/sh -c 'echo charger status F'"; + cmd = "/bin/sh -c 'echo charger status A'"; }; enabled = { source = "script"; diff --git a/pkgs/servers/home-automation/evcc/default.nix b/pkgs/servers/home-automation/evcc/default.nix index 7a8e9dd6a621..9b94f895d8e7 100644 --- a/pkgs/servers/home-automation/evcc/default.nix +++ b/pkgs/servers/home-automation/evcc/default.nix @@ -2,6 +2,7 @@ , buildGoModule , fetchFromGitHub , fetchNpmDeps +, fetchpatch , cacert , go , git @@ -16,20 +17,28 @@ buildGoModule rec { pname = "evcc"; - version = "0.117.4"; + version = "0.118.0"; src = fetchFromGitHub { owner = "evcc-io"; repo = pname; rev = version; - hash = "sha256-Qy2+E1//J6YKr/GAF0DItiyby78vCkfqg1pnvgBGSIQ="; + hash = "sha256-LQtFmN4IyDj/SRTik+ML3h1/tMwnTQ13dQHnghcDuUo="; }; - vendorHash = "sha256-3EHdjRCzrty7BnaSG4TAf52jRl0AVS6baSl2XhYUH0A="; + patches = [ + (fetchpatch { + # fix ISO15118 vehicle setup + url = "https://github.com/evcc-io/evcc/commit/cc22337b422e4ee541a2c75740c039f2d029bd9b.patch"; + hash = "sha256-Q+5Klpdv1cWVg716lbKl1JLwkr4LiLPRUoZHemFUQZc="; + }) + ]; + + vendorHash = "sha256-1YTVFn/DngzSQwYxGHCAaJl4ZnVj4au32YcpNo1m4w8="; npmDeps = fetchNpmDeps { inherit src; - hash = "sha256-GmNyjXt5eskf59e9dt1OLB4gayBFbk/pG+7dJ5qoO+Q="; + hash = "sha256-QRjOmanO+phyqgZb/cAyU0dFKI6T6o84MuObANZoYNE="; }; nativeBuildInputs = [