From 9e3474b5d8ee4afdd9c03cfb4a151ffebfca36b7 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Wed, 19 Mar 2025 14:08:00 +0530 Subject: Add libuv + luv for lua runtime --- flake.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 3d3f774..c972857 100644 --- a/flake.nix +++ b/flake.nix @@ -2,17 +2,25 @@ inputs = { flake-utils.url = "github:numtide/flake-utils"; nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + + lua-luv-source = { + url = "git+https://github.com/luvit/luv?submodules=1"; + flake = false; + }; }; - outputs = { self, nixpkgs, flake-utils, ... }: + outputs = { self, nixpkgs, flake-utils, lua-luv-source, ... }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; + dependencies = with pkgs; [ - pkg-config qt6.full qt6.qtbase luajit + libuv + luajitPackages.libluv + luajitPackages.luv # libcef # nss ]; @@ -23,7 +31,7 @@ src = ./.; buildInputs = dependencies; - nativeBuildInputs = with pkgs; [ cmake qt6.wrapQtAppsHook ]; + nativeBuildInputs = with pkgs; [ cmake qt6.wrapQtAppsHook pkg-config ]; }; devShells.default = pkgs.mkShell rec { @@ -31,6 +39,8 @@ cmake gnumake clang-tools + pkg-config + # vcpkg ] ++ dependencies; LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}"; -- cgit v1.3.1