Skip to content

Instantly share code, notes, and snippets.

@orzklv
Created August 15, 2024 15:56
Show Gist options
  • Save orzklv/f279d4e090bcfc594bda8f393a6e9c0c to your computer and use it in GitHub Desktop.
Save orzklv/f279d4e090bcfc594bda8f393a6e9c0c to your computer and use it in GitHub Desktop.
My life before flake-utils.lib.eachDefaultSystem was:
...
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