diff options
author | Vladimir Kirillov <proger@wilab.org.ua> | 2014-05-09 10:06:29 +0300 |
---|---|---|
committer | Vladimir Kirillov <proger@wilab.org.ua> | 2014-05-10 13:50:49 +0300 |
commit | e5f7e4ec3ca40d100feec03b73a59be8b26280d2 (patch) | |
tree | 82ef9a9456acf78a39cbee37f6a1872d1dfb72f2 /pkgs/development | |
parent | 96373a40414d5d989b3ec03b01f83e5386a30416 (diff) |
luajit: support Darwin builds
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/interpreters/luajit/default.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/development/interpreters/luajit/default.nix b/pkgs/development/interpreters/luajit/default.nix index 46c0b49c3b89..00c4ddc447f2 100644 --- a/pkgs/development/interpreters/luajit/default.nix +++ b/pkgs/development/interpreters/luajit/default.nix @@ -11,7 +11,10 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - patchPhase = stdenv.lib.optionalString (stdenv.gcc.libc != null) + patchPhase = '' + substituteInPlace Makefile \ + --replace /usr/local $out + '' + stdenv.lib.optionalString (stdenv.gcc.libc != null) '' substituteInPlace Makefile \ --replace ldconfig ${stdenv.gcc.libc}/sbin/ldconfig @@ -21,11 +24,11 @@ stdenv.mkDerivation rec { buildFlags = [ "amalg" ]; # Build highly optimized version installPhase = "make install PREFIX=$out"; - meta = { + meta = with stdenv.lib; { description = "high-performance JIT compiler for Lua 5.1"; homepage = http://luajit.org; - license = stdenv.lib.licenses.mit; - platforms = stdenv.lib.platforms.linux; - maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; + license = licenses.mit; + platforms = platforms.linux ++ platforms.darwin; + maintainers = [ maintainers.thoughtpolice ]; }; } |