aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-09 00:24:21 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-09 00:24:21 +0530
commit571ce3472d8d1277b0028dfd8118c6c8619afc34 (patch)
tree75b6045bfa5d1198cdb164d695225a6ae1dfbd9f /flake.nix
parent319908623e47b4e73f9af4aa4369cb895bd8df8f (diff)
downloadnull-browser-571ce3472d8d1277b0028dfd8118c6c8619afc34.tar.gz
null-browser-571ce3472d8d1277b0028dfd8118c6c8619afc34.zip
Add build default package to flake.nix
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix44
1 files changed, 24 insertions, 20 deletions
diff --git a/flake.nix b/flake.nix
index 7f817b9..ed3f539 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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; };
});
}