2024-05-02 00:46:19 +00:00
|
|
|
{ ... }:
|
|
|
|
res: pkgs: super:
|
|
|
|
|
2024-06-30 08:16:52 +00:00
|
|
|
with pkgs; {
|
|
|
|
xorg =
|
|
|
|
let
|
|
|
|
# Use `lib.callPackageWith __splicedPackages` rather than plain `callPackage`
|
|
|
|
# so as not to have the newly bound xorg items already in scope, which would
|
|
|
|
# have created a cycle.
|
|
|
|
overrides = lib.callPackageWith __splicedPackages ./overrides.nix {
|
|
|
|
inherit (darwin.apple_sdk.frameworks) ApplicationServices Carbon Cocoa;
|
|
|
|
inherit (darwin.apple_sdk.libs) Xplugin;
|
|
|
|
inherit (buildPackages.darwin) bootstrap_cmds;
|
|
|
|
udev = if stdenv.isLinux then udev else null;
|
|
|
|
libdrm = if stdenv.isLinux then libdrm else null;
|
|
|
|
};
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:16:52 +00:00
|
|
|
generatedPackages = lib.callPackageWith __splicedPackages ./default.nix { };
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:16:52 +00:00
|
|
|
xorgPackages = makeScopeWithSplicing' {
|
|
|
|
otherSplices = generateSplicesForMkScope "xorg";
|
|
|
|
f = lib.extends overrides generatedPackages;
|
|
|
|
};
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:16:52 +00:00
|
|
|
in
|
|
|
|
recurseIntoAttrs xorgPackages;
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
xwayland = callPackage ./xwayland.nix { };
|
|
|
|
|
|
|
|
xcbutilxrm = callPackage ./xcb-util-xrm.nix { };
|
|
|
|
}
|