swaymux/flake.nix

55 lines
1.2 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-04-02 11:26:12 +02:00
gcc13
gdb
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};
2024-03-28 14:09:10 +01:00
swaymux-pkg = (pkgs.qt6Packages.callPackage ./nix/package.nix {});
2024-03-09 15:38:58 +01:00
in {
swaymux = swaymux-pkg;
default = swaymux-pkg;
});
};
}