Skip to content

Commit

Permalink
Merge pull request #51 from akirak/improve-minimal
Browse files Browse the repository at this point in the history
feat(minimal): Pass pkgs to the argument function of eachSystem
  • Loading branch information
akirak authored Sep 10, 2023
2 parents 68e4e7b + 37b97e5 commit 64bf628
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions minimal/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@
nixpkgs,
...
} @ inputs: let
eachSystem = nixpkgs.lib.genAttrs (import systems);
pkgsFor = system: nixpkgs.legacyPackages.${system};
eachSystem = f:
nixpkgs.lib.genAttrs (import systems) (
system:
f nixpkgs.legacyPackages.${system}
);
in {
packages = eachSystem (system: {
hello = (pkgsFor system).hello;
packages = eachSystem (pkgs: {
hello = pkgs.hello;
});

devShells = eachSystem (system: {
default = (pkgsFor system).mkShell {
buildInputs = with (pkgsFor system); [
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
buildInputs = with pkgs; [
# Add development dependencies here
];
};
Expand Down

0 comments on commit 64bf628

Please sign in to comment.