21 src = fetchFromGitHub {
25 hash = "sha256-CRqxxbPkcjswntMgGkIrPFEbnjI90sfTmG6D1eCo45w=";
28 vendorHash = "sha256-x0EWFsR/O2Ztg39DL+yZx2ZDzJHADo2aPAeg/i+5KqM=";
30 npmDeps = fetchNpmDeps {
32 hash = "sha256-4PBlN2pbr7dzZNQzh/P0kBlsg6ut2XPwsfFB132hWO0=";
37 npmHooks.npmConfigHook
40 overrideModAttrs = _: {
60 "-X github.com/evcc-io/evcc/server.Version=${version}"
61 "-X github.com/evcc-io/evcc/server.Commit=${src.rev}"
70 doCheck = !stdenv.hostPlatform.isDarwin; # darwin sandbox limitations around network access, access to /etc/protocols and likely more
75 "TestOctopusConfigParse"
80 [ "-skip=^${lib.concatStringsSep "$|^" skippedTests}$" ];
84 inherit (nixosTests) evcc;
86 updateScript = nix-update-script { };
90 description = "EV Charge Controller";
91 homepage = "https://evcc.io";
92 changelog = "https://github.com/evcc-io/evcc/releases/tag/${version}";
93 license = licenses.mit;
94 maintainers = with maintainers; [ hexa ];