diff options
author | jakobrs <jakobrs100@gmail.com> | 2021-01-23 19:38:54 +0100 |
---|---|---|
committer | Matthieu Coudron <teto@users.noreply.github.com> | 2021-01-24 11:01:04 +0100 |
commit | 460b9f53b2f5192837d7a5d59bbd1e69d0b802f9 (patch) | |
tree | b7c57a9fb11c9edadd0025d30333306db538f761 | |
parent | 813e19964e8b11970db6530c0ce25bec18096b4d (diff) |
lua: Add more symlinks to lua.pc
This creates a symlink to lua.pc for every name of the file used by Arch: For a version of Lua (for example, 5.4) we now have: - lib/pkgconfig/lua.pc - lib/pkgconfig/lua-5.4.pc - lib/pkgconfig/lua5.4.pc - lib/pkgconfig/lua54.pc
-rw-r--r-- | pkgs/development/interpreters/lua-5/interpreter.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/lua-5/interpreter.nix b/pkgs/development/interpreters/lua-5/interpreter.nix index 7e4283838a0f5..35a074add0979 100644 --- a/pkgs/development/interpreters/lua-5/interpreter.nix +++ b/pkgs/development/interpreters/lua-5/interpreter.nix @@ -83,7 +83,9 @@ self = stdenv.mkDerivation rec { Libs: -L$out/lib -llua -lm Cflags: -I$out/include EOF + ln -s "$out/lib/pkgconfig/lua.pc" "$out/lib/pkgconfig/lua-${luaversion}.pc" ln -s "$out/lib/pkgconfig/lua.pc" "$out/lib/pkgconfig/lua${luaversion}.pc" + ln -s "$out/lib/pkgconfig/lua.pc" "$out/lib/pkgconfig/lua${lib.replaceStrings [ "." ] [ "" ] luaversion}.pc" ''; passthru = rec { |