add base: browser window, hints, history, cookies, adblock
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
{
|
||||
description = "att - a minimal, qutebrowser-like QtWebEngine browser";
|
||||
|
||||
inputs = {
|
||||
# Pinned to the current NixOS stable release.
|
||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
forAllSystems = f:
|
||||
nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
|
||||
in
|
||||
{
|
||||
packages = forAllSystems (pkgs: rec {
|
||||
att = pkgs.callPackage ./package.nix { };
|
||||
default = att;
|
||||
});
|
||||
|
||||
apps = forAllSystems (pkgs: rec {
|
||||
att = {
|
||||
type = "app";
|
||||
program = "${self.packages.${pkgs.stdenv.hostPlatform.system}.att}/bin/att";
|
||||
};
|
||||
default = att;
|
||||
});
|
||||
|
||||
devShells = forAllSystems (pkgs: {
|
||||
default = pkgs.mkShell {
|
||||
inputsFrom = [ self.packages.${pkgs.stdenv.hostPlatform.system}.att ];
|
||||
|
||||
packages = with pkgs; [
|
||||
clang-tools
|
||||
gdb
|
||||
];
|
||||
|
||||
# wrapQtAppsHook only wraps installed binaries, so a binary run straight
|
||||
# out of ./build has no idea where Qt's plugins live. Export the same
|
||||
# variables the wrapper would have set.
|
||||
shellHook = with pkgs.qt6; ''
|
||||
export QT_PLUGIN_PATH="${qtbase}/${qtbase.qtPluginPrefix}:${qtwebengine}/${qtbase.qtPluginPrefix}"
|
||||
export QML2_IMPORT_PATH="${qtdeclarative}/${qtbase.qtQmlPrefix}:${qtwebengine}/${qtbase.qtQmlPrefix}"
|
||||
export QTWEBENGINEPROCESS_PATH="${qtwebengine}/libexec/QtWebEngineProcess"
|
||||
echo "att dev shell - cmake -B build -G Ninja && cmake --build build && ./build/att"
|
||||
'';
|
||||
};
|
||||
});
|
||||
|
||||
formatter = forAllSystems (pkgs: pkgs.nixpkgs-fmt);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user