summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-12-23 11:32:49 -0500
committerGitHub <noreply@github.com>2020-12-23 11:32:49 -0500
commit043683f9fc899ec38e01172981dec4547c4a966a (patch)
tree5d02bf7c6c5d1e798c4d38f70b793d9f86e51fbb
parentf546e8afe592ad20f3f1f33c052f6d59c48a2900 (diff)
parent8f64caedbcce6291784296a58763cb1dc84a7553 (diff)
Merge pull request #96081 from holymonson/patch-2init-pdfium
z-lua: reveal bin name z to z.lua
-rw-r--r--pkgs/tools/misc/z-lua/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/misc/z-lua/default.nix b/pkgs/tools/misc/z-lua/default.nix
index 59149506e6c0..dc6892368673 100644
--- a/pkgs/tools/misc/z-lua/default.nix
+++ b/pkgs/tools/misc/z-lua/default.nix
@@ -20,8 +20,10 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
- install -Dm755 z.lua $out/bin/z
- wrapProgram $out/bin/z --set LUA_CPATH "${lua52Packages.luafilesystem}/lib/lua/5.2/lfs.so" --set _ZL_USE_LFS 1;
+ install -Dm755 z.lua $out/bin/z.lua
+ wrapProgram $out/bin/z.lua --set LUA_CPATH "${lua52Packages.luafilesystem}/lib/lua/5.2/lfs.so" --set _ZL_USE_LFS 1;
+ # Create symlink for backwards compatibility. See: https://github.com/NixOS/nixpkgs/pull/96081
+ ln -s $out/bin/z.lua $out/bin/z
runHook postInstall
'';