swaymux/flake.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

2024-03-09 15:38:58 +01:00
{
description = "Swaymux: sway workspace/output/container navigation";
inputs.nixpkgs.url = "nixpkgs/nixpkgs-unstable";
outputs = {
nixpkgs,
self,
...
}: let
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in {
2024-03-09 16:30:44 +01:00
devShells = forAllSystems (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
2024-03-09 15:38:58 +01:00
default = pkgs.mkShell {
packages = with pkgs; [
# base toolchain
2024-03-09 17:58:15 +01:00
gcc12
2024-03-11 10:18:39 +01:00
clang
2024-03-09 17:58:15 +01:00
libgcc
2024-03-09 15:38:58 +01:00
qt6.full
qtcreator
cmake
nlohmann_json
2024-03-09 17:58:15 +01:00
qt6.qtwayland
icu
libcxx
2024-03-09 15:38:58 +01:00
# nix utils
self.formatter.${pkgs.system}
nil
];
};
});
2024-03-09 16:30:44 +01:00
formatter = forAllSystems (system: let
pkgs = nixpkgs.legacyPackages.${system};
in pkgs.alejandra);
2024-03-09 15:38:58 +01:00
packages = forAllSystems (system: let
pkgs = nixpkgs.legacyPackages.${system};
swaymux-pkg = (pkgs.qt6Packages.callPackage ./nix/default.nix {});
in {
swaymux = swaymux-pkg;
default = swaymux-pkg;
});
};
}