Merge pull request #237766 from wegank/scheme2c-compatibility-fix
chickenPackages_5.chickenEggs.scheme2c-compatibility: fix build on x86_64-darwin
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
{ stdenv, pkgs, lib, chickenEggs }:
|
||||
let
|
||||
inherit (lib) addMetaAttrs;
|
||||
addToNativeBuildInputs = pkg: old: {
|
||||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ lib.toList pkg;
|
||||
};
|
||||
addToBuildInputs = pkg: old: {
|
||||
buildInputs = (old.buildInputs or [ ]) ++ lib.toList pkg;
|
||||
};
|
||||
@@ -59,7 +62,9 @@ in
|
||||
plot = addToBuildInputs pkgs.plotutils;
|
||||
postgresql = addToBuildInputsWithPkgConfig pkgs.postgresql;
|
||||
rocksdb = addToBuildInputs pkgs.rocksdb;
|
||||
scheme2c-compatibility = addPkgConfig;
|
||||
scheme2c-compatibility = old:
|
||||
addToNativeBuildInputs (lib.optionals (stdenv.system == "x86_64-darwin") [ pkgs.memorymappingHook ])
|
||||
(addPkgConfig old);
|
||||
sdl-base = addToBuildInputs pkgs.SDL;
|
||||
sdl2 = addToPropagatedBuildInputsWithPkgConfig pkgs.SDL2;
|
||||
sdl2-image = addToBuildInputs pkgs.SDL2_image;
|
||||
|
||||
Reference in New Issue
Block a user