about summary refs log tree commit diff
path: root/pkgs/development/interpreters
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-05-12 09:34:23 -0400
committerShea Levy <shea@shealevy.com>2014-05-12 09:34:23 -0400
commit89238a251c2b65be74936c20c1417dd5b5637ec2 (patch)
tree17730b10c3c22f71fa8cd676e896d80a126a29ba /pkgs/development/interpreters
parent2d047284705403ac7f7d533c8087378c3cd5002b (diff)
parent96903d5e480cdf45a0783c3d7fb4adbbdf43d577 (diff)
downloadnixlib-89238a251c2b65be74936c20c1417dd5b5637ec2.tar
nixlib-89238a251c2b65be74936c20c1417dd5b5637ec2.tar.gz
nixlib-89238a251c2b65be74936c20c1417dd5b5637ec2.tar.bz2
nixlib-89238a251c2b65be74936c20c1417dd5b5637ec2.tar.lz
nixlib-89238a251c2b65be74936c20c1417dd5b5637ec2.tar.xz
nixlib-89238a251c2b65be74936c20c1417dd5b5637ec2.tar.zst
nixlib-89238a251c2b65be74936c20c1417dd5b5637ec2.zip
Merge branch 'sysdig-0.1.82-now-with-osx' of git://github.com/proger/nixpkgs
sysdig: updated to 0.1.82, starting to support Darwin builds (includes
luajit Darwin support)
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r--pkgs/development/interpreters/luajit/default.nix13
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 ];
   };
 }