fix flake

This commit is contained in:
LordGrimmauld 2024-03-09 16:30:44 +01:00
parent 2eafe4b950
commit 24e3998a1f

View File

@ -15,20 +15,10 @@
]; ];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system); forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
# forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: forSystem system fn);
in { in {
checks = forAllSystems ({ devShells = forAllSystems (system: let
pkgs, pkgs = nixpkgs.legacyPackages.${system};
lib, in {
...
}: {
alejandra = pkgs.runCommand "check-alejandra" {} ''
${lib.getExe pkgs.alejandra} --check ${./.}
touch $out
'';
});
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell { default = pkgs.mkShell {
packages = with pkgs; [ packages = with pkgs; [
# base toolchain # base toolchain
@ -46,8 +36,9 @@
}; };
}); });
formatter = forAllSystems (pkgs: pkgs.alejandra); formatter = forAllSystems (system: let
pkgs = nixpkgs.legacyPackages.${system};
in pkgs.alejandra);
packages = forAllSystems (system: let packages = forAllSystems (system: let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
swaymux-pkg = (pkgs.qt6Packages.callPackage ./nix/default.nix {}); swaymux-pkg = (pkgs.qt6Packages.callPackage ./nix/default.nix {});