Unverified Commit a6b4bf11 authored by Austin Horstman's avatar Austin Horstman Committed by GitHub
Browse files

luaPackages.lux-lua: use toLuaModule (#453919)

parents 8e26deeb 04dfdb03
Loading
Loading
Loading
Loading
+62 −59
Original line number Diff line number Diff line
@@ -12,12 +12,14 @@
  perl,
  pkg-config,
  rustPlatform,
  toLuaModule,
}:
let
  luaMajorMinor = lib.take 2 (lib.splitVersion lua.version);
  luaVersionDir = if isLuaJIT then "jit" else lib.concatStringsSep "." luaMajorMinor;
  luaFeature = if isLuaJIT then "luajit" else "lua${lib.concatStringsSep "" luaMajorMinor}";
in
toLuaModule (
  rustPlatform.buildRustPackage rec {
    pname = "lux-lua";

@@ -90,3 +92,4 @@ rustPlatform.buildRustPackage rec {
      platforms = lib.platforms.all;
    };
  }
)