diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2024-01-07 17:27:32 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2024-01-07 17:27:32 +0100 |
commit | cbcf1d977b94592aa375044a85d2977f7e8cdf0d (patch) | |
tree | dc30af3dfd284526c8395886bdefcaa11347f24f /pkgs/servers/home-automation | |
parent | da496599fd5806994fffc7f6b633ae9ff65b8b99 (diff) |
evcc: 0.123.2 -> 0.123.7
https://github.com/evcc-io/evcc/releases/tag/0.123.7 https://github.com/evcc-io/evcc/releases/tag/0.123.6 https://github.com/evcc-io/evcc/releases/tag/0.123.5 https://github.com/evcc-io/evcc/releases/tag/0.123.4 https://github.com/evcc-io/evcc/releases/tag/0.123.3
Diffstat (limited to 'pkgs/servers/home-automation')
-rw-r--r-- | pkgs/servers/home-automation/evcc/default.nix | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/pkgs/servers/home-automation/evcc/default.nix b/pkgs/servers/home-automation/evcc/default.nix index a2652b1cb575e..7be36afc62911 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,16 +17,25 @@ buildGoModule rec { pname = "evcc"; - version = "0.123.2"; + version = "0.123.7"; src = fetchFromGitHub { owner = "evcc-io"; - repo = pname; + repo = "evcc"; rev = version; - hash = "sha256-iGt3j8q8dpQLUIHHnGHCgraPETk9GL9t/ygBZtPG7yM="; + hash = "sha256-I8qcKrCuiUpDdsWDMiEZdo+PBkMELo5V6GW+nKFaD3Y="; }; - vendorHash = "sha256-rhGMN5v+JzNg1p2GptomDDtqS7M4EafROXXy185qtmU="; + patches = [ + (fetchpatch { + # https://github.com/evcc-io/evcc/pull/11547 + name = "evcc-mockgen.patch"; + url = "https://github.com/evcc-io/evcc/commit/5ec02a9dba79a733f71fc02a9552eb01e4e08f0b.patch"; + hash = "sha256-uxKdtwdhUcMFCMkG756OD9aSMP9rdOL4Tg0HBWwp3kw="; + }) + ]; + + vendorHash = "sha256-FKF6+64mjrKgzFAb+O0QCURieOoRB//QNbpMFMcNG8s="; npmDeps = fetchNpmDeps { inherit src; @@ -46,6 +56,8 @@ buildGoModule rec { mockgen ]; + inherit patches; + preBuild = '' make assets ''; |