Created
August 15, 2024 15:56
-
-
Save orzklv/f279d4e090bcfc594bda8f393a6e9c0c to your computer and use it in GitHub Desktop.
My life before flake-utils.lib.eachDefaultSystem was:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
let | |
lib = nixpkgs.lib; | |
systems = [ | |
"aarch64-linux" | |
"x86_64-linux" | |
"aarch64-darwin" | |
"x86_64-darwin" | |
]; | |
forAllSystems = nixpkgs.lib.genAttrs systems; | |
forEachSystem = f: lib.genAttrs systems (system: f pkgsFor.${system}); | |
pkgsFor = lib.genAttrs systems (system: | |
import nixpkgs { | |
inherit system; | |
config.allowUnfree = true; | |
}); | |
devShellFor = system: | |
let | |
pkgs = import nixpkgs { | |
inherit system; | |
config.allowUnfree = true; | |
}; | |
script = import ./shell.nix { inherit pkgs; }; | |
in | |
script; | |
pkgs = nixpkgs.legacyPackages.${system}; | |
in | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment