1 { lib, stdenv, pkgs, fetchFromGitHub, fetchpatch, argparse, mosquitto, cmake, autoconf, automake, libtool, pkg-config, openssl }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-K3gZ5OudNA92S38U1+HndxjA7OVfh2ymYf8OetB646M=";
29 ./patches/ebusd-cmake.patch
30 # Upstream patch for gcc-13 copmpatibility:
32 name = "gcc-13.patch";
33 url = "https://github.com/john30/ebusd/commit/3384f3780087bd6b94d46bf18cdad18201ad516c.patch";
34 hash = "sha256-+wZDHjGaIhBCqhy2zmIE8Ko3uAiw8kfKx64etCqRQjM=";
39 "-DCMAKE_INSTALL_SYSCONFDIR=${placeholder "out"}/etc"
40 "-DCMAKE_INSTALL_BINDIR=${placeholder "out"}/bin"
41 "-DCMAKE_INSTALL_LOCALSTATEDIR=${placeholder "TMPDIR"}"
50 description = "ebusd";
51 homepage = "https://github.com/john30/ebusd";
52 license = licenses.gpl3Only;
53 maintainers = with maintainers; [ nathan-gs ];
54 platforms = platforms.linux;