Loading pkgs/by-name/me/meshtasticd/package.nix +0 −14 Original line number Diff line number Diff line Loading @@ -16,13 +16,6 @@ libuv, libxkbcommon, ulfius, openssl, gnutls, jansson, zlib, libmicrohttpd, orcania, yder, yaml-cpp, udevCheckHook, versionCheckHook, Loading Loading @@ -73,22 +66,15 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ bluez gnutls i2c-tools jansson libX11 libgpiod_1 libinput libmicrohttpd libusb1 libuv libxkbcommon openssl orcania ulfius yaml-cpp yder zlib ]; preConfigure = '' Loading pkgs/by-name/ul/ulfius/package.nix +29 −8 Original line number Diff line number Diff line Loading @@ -2,7 +2,18 @@ lib, stdenv, fetchFromGitHub, withJson ? true, withHttps ? true, withWebsockets ? true, withCurl ? true, withLogger ? true, withUwsc ? withWebsockets, # uwsc depends on websockets # nativeBuildInputs cmake, # Optional dependencies curl, gnutls, jansson, Loading @@ -29,14 +40,24 @@ stdenv.mkDerivation (finalAttrs: { cmake ]; buildInputs = [ curl gnutls jansson propagatedBuildInputs = [ libmicrohttpd orcania yder zlib ] ++ lib.optionals withJson [ jansson ] ++ lib.optionals withCurl [ curl ] ++ lib.optionals (withHttps || withWebsockets) [ gnutls ] ++ lib.optionals withLogger [ yder ] ++ lib.optionals withWebsockets [ zlib ]; cmakeFlags = [ (lib.cmakeBool "WITH_CURL" withCurl) (lib.cmakeBool "WITH_JANSSON" withJson) (lib.cmakeBool "WITH_GNUTLS" (withHttps || withWebsockets)) (lib.cmakeBool "WITH_YDER" withLogger) (lib.cmakeBool "BUILD_UWSC" (withUwsc && withWebsockets)) (lib.cmakeBool "WITH_WEBSOCKET" withWebsockets) (lib.cmakeBool "WITH_WEBSOCKET_MESSAGE_LIST" withWebsockets) ]; meta = { Loading @@ -45,7 +66,7 @@ stdenv.mkDerivation (finalAttrs: { changelog = "https://github.com/babelouest/ulfius/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ drupol ]; mainProgram = "uwsc"; platforms = lib.platforms.all; }; } // lib.optionalAttrs (withUwsc && withWebsockets) { mainProgram = "uwsc"; }; }) Loading
pkgs/by-name/me/meshtasticd/package.nix +0 −14 Original line number Diff line number Diff line Loading @@ -16,13 +16,6 @@ libuv, libxkbcommon, ulfius, openssl, gnutls, jansson, zlib, libmicrohttpd, orcania, yder, yaml-cpp, udevCheckHook, versionCheckHook, Loading Loading @@ -73,22 +66,15 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ bluez gnutls i2c-tools jansson libX11 libgpiod_1 libinput libmicrohttpd libusb1 libuv libxkbcommon openssl orcania ulfius yaml-cpp yder zlib ]; preConfigure = '' Loading
pkgs/by-name/ul/ulfius/package.nix +29 −8 Original line number Diff line number Diff line Loading @@ -2,7 +2,18 @@ lib, stdenv, fetchFromGitHub, withJson ? true, withHttps ? true, withWebsockets ? true, withCurl ? true, withLogger ? true, withUwsc ? withWebsockets, # uwsc depends on websockets # nativeBuildInputs cmake, # Optional dependencies curl, gnutls, jansson, Loading @@ -29,14 +40,24 @@ stdenv.mkDerivation (finalAttrs: { cmake ]; buildInputs = [ curl gnutls jansson propagatedBuildInputs = [ libmicrohttpd orcania yder zlib ] ++ lib.optionals withJson [ jansson ] ++ lib.optionals withCurl [ curl ] ++ lib.optionals (withHttps || withWebsockets) [ gnutls ] ++ lib.optionals withLogger [ yder ] ++ lib.optionals withWebsockets [ zlib ]; cmakeFlags = [ (lib.cmakeBool "WITH_CURL" withCurl) (lib.cmakeBool "WITH_JANSSON" withJson) (lib.cmakeBool "WITH_GNUTLS" (withHttps || withWebsockets)) (lib.cmakeBool "WITH_YDER" withLogger) (lib.cmakeBool "BUILD_UWSC" (withUwsc && withWebsockets)) (lib.cmakeBool "WITH_WEBSOCKET" withWebsockets) (lib.cmakeBool "WITH_WEBSOCKET_MESSAGE_LIST" withWebsockets) ]; meta = { Loading @@ -45,7 +66,7 @@ stdenv.mkDerivation (finalAttrs: { changelog = "https://github.com/babelouest/ulfius/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.lgpl21Only; maintainers = with lib.maintainers; [ drupol ]; mainProgram = "uwsc"; platforms = lib.platforms.all; }; } // lib.optionalAttrs (withUwsc && withWebsockets) { mainProgram = "uwsc"; }; })