diff --git a/pkgs/games/etlegacy/default.nix b/pkgs/games/etlegacy/default.nix index 0ae4bb93c2f8..e3fea938d43b 100644 --- a/pkgs/games/etlegacy/default.nix +++ b/pkgs/games/etlegacy/default.nix @@ -2,7 +2,7 @@ stdenv, lib, makeWrapper, - writeScriptBin, + writeShellApplication, fetchFromGitHub, fetchurl, cmake, @@ -45,12 +45,15 @@ hash = "sha256-pIq3SaGhKrTZE3KGsfI9ZCwp2lmEWyuvyPZOBSzwbz4="; }; - fakeGit = writeScriptBin "git" '' - #! ${stdenv.shell} -e - if [ "$1" = "describe" ]; then - echo "${version}" - fi - ''; + fakeGit = writeShellApplication { + name = "git"; + + text = '' + if [ "$1" = "describe" ]; then + echo "${version}" + fi + ''; + }; in stdenv.mkDerivation { pname = "etlegacy";