diff --git a/stm32/default.nix b/stm32/default.nix index d6ce761..90dd57e 100644 --- a/stm32/default.nix +++ b/stm32/default.nix @@ -44,9 +44,11 @@ in name = "stabilizer"; src = ; patchPhase = '' - substituteInPlace src/main.rs \ - --replace "net::wire::IpAddress::v4(10, 0, 16, 99)," \ - "net::wire::IpAddress::v4(192, 168, 1, 76)," + substituteInPlace src/hardware/configuration.rs \ + --replace "IpAddress::v4(10, 0, 16, 99)" \ + "IpAddress::v4(192, 168, 1, 76)" \ + --replace "Ipv4Address::new(10, 0, 16, 1)" \ + "Ipv4Address::new(192, 168, 1, 1)" ''; }; thermostat = buildStm32Firmware {