From 3362afaee0d57477b147fc438cf399980ac3ef9b Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Thu, 15 Aug 2024 14:21:38 +0200 Subject: [PATCH 1/2] libkazv: init at 0.7.0 --- pkgs/by-name/li/libkazv/package.nix | 65 +++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 pkgs/by-name/li/libkazv/package.nix diff --git a/pkgs/by-name/li/libkazv/package.nix b/pkgs/by-name/li/libkazv/package.nix new file mode 100644 index 000000000000..f4d2afa5a317 --- /dev/null +++ b/pkgs/by-name/li/libkazv/package.nix @@ -0,0 +1,65 @@ +{ + lib, + stdenv, + fetchFromGitLab, + boost, + catch2_3, + cmake, + cryptopp, + immer, + lager, + libcpr, + libhttpserver, + libmicrohttpd, + nlohmann_json, + olm, + pkg-config, + zug, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "libkazv"; + version = "0.7.0"; + + src = fetchFromGitLab { + domain = "lily-is.land"; + owner = "kazv"; + repo = "libkazv"; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-bKujiuAR5otF7nc/BdVWVaEW9fSxdh2bcAgsQ5UO1Aw="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + boost + cryptopp + immer + lager + libcpr + libhttpserver + libmicrohttpd + olm + nlohmann_json + zug + ]; + + strictDeps = true; + + cmakeFlags = [ (lib.cmakeBool "libkazv_BUILD_TESTS" finalAttrs.doCheck) ]; + + doCheck = true; + + checkInputs = [ catch2_3 ]; + + meta = { + description = "Matrix client sdk built upon lager and the value-oriented design it enables"; + homepage = "https://lily-is.land/kazv/libkazv"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ fgaz ]; + platforms = lib.platforms.all; + }; +}) From cd79c54b93e96280f63cb139c6ff3ccea357f22b Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Thu, 15 Aug 2024 14:21:59 +0200 Subject: [PATCH 2/2] kazv: init at 0.5.0 --- pkgs/by-name/ka/kazv/package.nix | 70 ++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 pkgs/by-name/ka/kazv/package.nix diff --git a/pkgs/by-name/ka/kazv/package.nix b/pkgs/by-name/ka/kazv/package.nix new file mode 100644 index 000000000000..048bc2c837cd --- /dev/null +++ b/pkgs/by-name/ka/kazv/package.nix @@ -0,0 +1,70 @@ +{ + lib, + stdenv, + fetchFromGitLab, + boost, + cmake, + cmark, + cryptopp, + extra-cmake-modules, + immer, + kdePackages, + lager, + libkazv, + nlohmann_json, + olm, + pkg-config, + qt6, + zug, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "kazv"; + version = "0.5.0"; + + src = fetchFromGitLab { + domain = "lily-is.land"; + owner = "kazv"; + repo = "kazv"; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-WBS7TJJw0t57V4+NxsG8V8q4UKQXB8kRpWocvNy1Eto="; + }; + + nativeBuildInputs = [ + cmake + kdePackages.extra-cmake-modules + pkg-config + qt6.wrapQtAppsHook + ]; + + buildInputs = [ + boost + cmark + cryptopp + immer + kdePackages.kio + kdePackages.kirigami + kdePackages.kirigami-addons + kdePackages.knotifications + lager + libkazv + nlohmann_json + olm + qt6.qtbase + qt6.qtimageformats + qt6.qtmultimedia + qt6.qtwayland + zug + ]; + + strictDeps = true; + + meta = { + description = "Convergent matrix client and instant messaging app"; + homepage = "https://kazv.chat/"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ fgaz ]; + mainProgram = "kazv"; + platforms = lib.platforms.all; + }; +})