Update dependencies; support macOS

This commit is contained in:
bluepython508
2024-02-20 12:14:54 +00:00
parent d315e63ac5
commit 6a82f1360f
2 changed files with 47 additions and 19 deletions

View File

@@ -2,11 +2,19 @@
outputs = {
self,
nixpkgs,
systems,
}: let
sys = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${sys};
eachSystem = f:
nixpkgs.lib.genAttrs (import systems) (sys:
f {
inherit sys;
pkgs = nixpkgs.legacyPackages.${sys};
});
in {
packages.${sys} = rec {
packages = eachSystem ({
sys,
pkgs,
}: rec {
python3 = pkgs.python3.override {
packageOverrides = final: prev: {
milc = prev.milc.overrideAttrs {
@@ -35,16 +43,21 @@
};
qmk = pkgs.qmk.override {inherit python3;};
};
devShells.${sys}.default = pkgs.mkShell {
packages = with pkgs; [
self.packages.${sys}.qmk
clang
clang-tools
];
shellHook = ''
export QMK_HOME=$PWD/qmk_firmware
'';
};
});
devShells = eachSystem ({
sys,
pkgs,
}: {
default = pkgs.mkShell {
packages = with pkgs; [
self.packages.${sys}.qmk
clang
clang-tools
];
shellHook = ''
export QMK_HOME=$PWD/qmk_firmware
'';
};
});
};
}