fix flake
This commit is contained in:
parent
2eafe4b950
commit
24e3998a1f
21
flake.nix
21
flake.nix
@ -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 {});
|
||||||
|
Loading…
Reference in New Issue
Block a user