Skip to content

Commit

Permalink
Fix game executable missing from bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
polybluez committed Dec 23, 2024
1 parent 791bc66 commit 4187b90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions game/bundle/mkExecutablePath.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
findutils,
outils,
lib,
coreutils
}:
stdenvNoCC.mkDerivation {
pname = "d2df-executable-path";
Expand All @@ -21,7 +22,7 @@ stdenvNoCC.mkDerivation {
dontStrip = true;
dontFixup = true;

nativeBuildInputs = [gawk gnused zip findutils outils];
nativeBuildInputs = [gawk gnused zip findutils outils coreutils];

buildPhase = let
copyLibraries = archAttrs: let
Expand All @@ -44,14 +45,14 @@ stdenvNoCC.mkDerivation {
[ -d "${archAttrs.doom2df}/lib" ] && find -L ${archAttrs.doom2df}/lib -type f -exec cp {} ${archAttrs.prefix} \;
''
else ''
[ -d "${archAttrs.doom2df}/bin" ] && find -L ${archAttrs.doom2df}/bin -type f -exec cp {} ${archAttrs.prefix}/{}.exe \;
[ -d "${archAttrs.doom2df}/bin" ] && find -L ${archAttrs.doom2df}/bin -type f -exec sh -c 'cp $0 ${archAttrs.prefix}/''${0##*/}.exe' {} \;
''
)
)
+ (
lib.optionalString (!builtins.isNull archAttrs.editor)
''
[ -d "${archAttrs.editor}/bin" ] && find -L ${archAttrs.editor}/bin -type f -exec cp {} ${archAttrs.prefix}/{}.exe \;
[ -d "${archAttrs.editor}/bin" ] && find -L ${archAttrs.editor}/bin -type f -exec sh -c 'cp $0 ${archAttrs.prefix}/''${0##*/}.exe' {} \;
''
);
copyEachArch = arch: archAttrs: ''
Expand Down

0 comments on commit 4187b90

Please sign in to comment.