From d3bb475232cc332605e58c6bb74741bb057f6257 Mon Sep 17 00:00:00 2001 From: Jason Yundt Date: Sat, 4 Feb 2023 13:11:54 -0500 Subject: [PATCH] ecwolf: fix executable not being added to PATH Co-authored-by: Guillaume Girol --- pkgs/games/ecwolf/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/games/ecwolf/default.nix b/pkgs/games/ecwolf/default.nix index b5f0c5152c18..34c186f7f2dc 100644 --- a/pkgs/games/ecwolf/default.nix +++ b/pkgs/games/ecwolf/default.nix @@ -33,6 +33,12 @@ stdenv.mkDerivation rec { sed -i -e "s|include(\''${CMAKE_CURRENT_SOURCE_DIR}/macosx/install.txt)||" src/CMakeLists.txt ''; + # ECWolf installs its binary to the games/ directory, but Nix only adds bin/ + # directories to the PATH. + postInstall = '' + mv "$out/games" "$out/bin" + ''; + meta = with lib; { description = "Enhanched SDL-based port of Wolfenstein 3D for various platforms"; homepage = "https://maniacsvault.net/ecwolf/";