elixir: Locate generate_app.escript via defaulted argument

authored by

Shane Sveller and committed by
Yt
bf2e7265 ba36bdc1

+3 -1
+1
pkgs/development/interpreters/elixir/1.15.nix
··· 4 4 sha256 = "sha256-o5MfA0UG8vpnPCH1EYspzcN62yKZQcz5uVUY47hOL9w="; 5 5 # https://hexdocs.pm/elixir/1.15.0/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp 6 6 minimumOTPVersion = "24"; 7 + escriptPath = "lib/elixir/scripts/generate_app.escript"; 7 8 }
+2 -1
pkgs/development/interpreters/elixir/generic-builder.nix
··· 16 16 , sha256 ? null 17 17 , rev ? "v${version}" 18 18 , src ? fetchFromGitHub { inherit rev sha256; owner = "elixir-lang"; repo = "elixir"; } 19 + , escriptPath ? "lib/elixir/generate_app.escript" 19 20 } @ args: 20 21 21 22 let ··· 38 39 buildFlags = optional debugInfo "ERL_COMPILER_OPTIONS=debug_info"; 39 40 40 41 preBuild = '' 41 - patchShebangs lib/elixir/generate_app.escript || true 42 + patchShebangs ${escriptPath} || true 42 43 43 44 substituteInPlace Makefile \ 44 45 --replace "/usr/local" $out