aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-19 14:08:00 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-19 14:09:09 +0530
commit9e3474b5d8ee4afdd9c03cfb4a151ffebfca36b7 (patch)
treedb76f6775ac45f53a280477a4776586e6c6f251f /flake.nix
parent1bd89088f1bb6103a34584ae39157abf2f732742 (diff)
downloadnull-browser-9e3474b5d8ee4afdd9c03cfb4a151ffebfca36b7.tar.gz
null-browser-9e3474b5d8ee4afdd9c03cfb4a151ffebfca36b7.zip
Add libuv + luv for lua runtime
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix16
1 files changed, 13 insertions, 3 deletions
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}";