mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-06 14:31:00 +00:00
simplify
This commit is contained in:
parent
87bfd09130
commit
dd85a3d89c
@ -74,7 +74,6 @@ let
|
|||||||
retro68 = true;
|
retro68 = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
in rec {
|
|
||||||
# A Nixpkgs overlay.
|
# A Nixpkgs overlay.
|
||||||
overlay = pkgs: prev:
|
overlay = pkgs: prev:
|
||||||
{
|
{
|
||||||
@ -228,7 +227,6 @@ in rec {
|
|||||||
export CMAKE_TOOLCHAIN_FILE=${toolchain}
|
export CMAKE_TOOLCHAIN_FILE=${toolchain}
|
||||||
|
|
||||||
retro68_addRIncludes() {
|
retro68_addRIncludes() {
|
||||||
echo "retro68_addRIncludes: $1 $depHostOffset"
|
|
||||||
case $depHostOffset in
|
case $depHostOffset in
|
||||||
-1) local role='BUILD_' ;;
|
-1) local role='BUILD_' ;;
|
||||||
0) local role="" ;;
|
0) local role="" ;;
|
||||||
@ -242,7 +240,6 @@ in rec {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "targetOffset: $targetOffset"
|
|
||||||
addEnvHooks "$targetOffset" retro68_addRIncludes
|
addEnvHooks "$targetOffset" retro68_addRIncludes
|
||||||
|
|
||||||
'' + (pkgs.lib.optionalString (systemName == "Retro68") ''
|
'' + (pkgs.lib.optionalString (systemName == "Retro68") ''
|
||||||
@ -340,4 +337,7 @@ in rec {
|
|||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
[ pkgs.hfsutils pkgs.retro68_tools pkgs.cmake pkgs.gnumake ];
|
[ pkgs.hfsutils pkgs.retro68_tools pkgs.cmake pkgs.gnumake ];
|
||||||
}) crossPkgs;
|
}) crossPkgs;
|
||||||
}
|
|
||||||
|
in {
|
||||||
|
inherit overlay crossPkgs shell;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user