Skip to content

Commit

Permalink
refactor(pkgs/default.nix): Split packages list based on the platform
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarKirov committed May 7, 2023
1 parent 47e916f commit 4cecce1
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@
pkgs,
...
}: let
inherit (pkgs) callPackage;
inherit (pkgs) callPackage lib darwin hostPlatform;
darwinPkgs = {
inherit (pkgs.darwin.apple_sdk.frameworks) Foundation;
inherit (darwin.apple_sdk.frameworks) Foundation;
};
in {
overlayAttrs = self'.packages;
packages = {
dmd = callPackage ./dmd ({} // darwinPkgs);
packages =
{
ldc = callPackage ./ldc {};

ldc = callPackage ./ldc {};

dub = callPackage ./dub {};
};
dub = callPackage ./dub {};
}
// lib.optionalAttrs hostPlatform.isx86 {
dmd = callPackage ./dmd ({} // darwinPkgs);
};
};
}

0 comments on commit 4cecce1

Please sign in to comment.