diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-09 00:24:21 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-09 00:24:21 +0530 |
| commit | 571ce3472d8d1277b0028dfd8118c6c8619afc34 (patch) | |
| tree | 75b6045bfa5d1198cdb164d695225a6ae1dfbd9f /flake.nix | |
| parent | 319908623e47b4e73f9af4aa4369cb895bd8df8f (diff) | |
| download | null-browser-571ce3472d8d1277b0028dfd8118c6c8619afc34.tar.gz null-browser-571ce3472d8d1277b0028dfd8118c6c8619afc34.zip | |
Add build default package to flake.nix
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 44 |
1 files changed, 24 insertions, 20 deletions
@@ -5,30 +5,34 @@ }; outputs = { self, nixpkgs, flake-utils, ... }: - let - shell = { pkgs, ... }: - pkgs.mkShell rec { + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + packages = with pkgs; [ + pkg-config + qt6.full + qt6.qtbase + luajit + # libcef + # nss + ]; + in { + packages.default = pkgs.stdenv.mkDerivation { + pname = "web-browser"; + version = "0.0.0"; + src = ./.; + + buildInputs = packages; + nativeBuildInputs = with pkgs; [ cmake qt6.wrapQtAppsHook ]; + }; + + devShells.default = pkgs.mkShell rec { buildInputs = with pkgs; [ cmake gnumake - pkg-config clang-tools - - pkgs.qt6.full - luajit - # lua51Packages.lua - # libcef - # nss - ]; - nativeBuildInputs = []; - - # CEF_PACKAGE_PATH = "${pkgs.libcef}"; - LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath (buildInputs ++ nativeBuildInputs)}"; + ] ++ packages; + LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}"; }; - in flake-utils.lib.eachDefaultSystem (system: - let - pkgs = import nixpkgs { inherit system; }; - in { - devShells.default = shell { inherit pkgs system; }; }); } |
