nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 61 lines 1.7 kB view raw
1# similar to interpreters/python/default.nix 2{ stdenv, lib, callPackage, fetchurl, fetchpatch, makeBinaryWrapper }: 3 4rec { 5 lua5_4 = callPackage ./interpreter.nix { 6 sourceVersion = { major = "5"; minor = "4"; patch = "3"; }; 7 hash = "1yxvjvnbg4nyrdv10bq42gz6dr66pyan28lgzfygqfwy2rv24qgq"; 8 makeWrapper = makeBinaryWrapper; 9 10 patches = lib.optional stdenv.isDarwin ./5.4.darwin.patch; 11 }; 12 13 lua5_4_compat = lua5_4.override({ 14 compat = true; 15 }); 16 17 lua5_3 = callPackage ./interpreter.nix { 18 sourceVersion = { major = "5"; minor = "3"; patch = "6"; }; 19 hash = "0q3d8qhd7p0b7a4mh9g7fxqksqfs6mr1nav74vq26qvkp2dxcpzw"; 20 makeWrapper = makeBinaryWrapper; 21 22 patches = 23 lib.optionals stdenv.isDarwin [ ./5.2.darwin.patch ]; 24 }; 25 26 lua5_3_compat = lua5_3.override({ 27 compat = true; 28 }); 29 30 31 lua5_2 = callPackage ./interpreter.nix { 32 sourceVersion = { major = "5"; minor = "2"; patch = "4"; }; 33 hash = "0jwznq0l8qg9wh5grwg07b5cy3lzngvl5m2nl1ikp6vqssmf9qmr"; 34 makeWrapper = makeBinaryWrapper; 35 patches = lib.optional stdenv.isDarwin ./5.2.darwin.patch; 36 }; 37 38 lua5_2_compat = lua5_2.override({ 39 compat = true; 40 }); 41 42 43 lua5_1 = callPackage ./interpreter.nix { 44 sourceVersion = { major = "5"; minor = "1"; patch = "5"; }; 45 hash = "2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333"; 46 makeWrapper = makeBinaryWrapper; 47 patches = (lib.optional stdenv.isDarwin ./5.1.darwin.patch) 48 ++ [ ./CVE-2014-5461.patch ]; 49 }; 50 51 luajit_2_0 = import ../luajit/2.0.nix { 52 self = luajit_2_0; 53 inherit callPackage lib; 54 }; 55 56 luajit_2_1 = import ../luajit/2.1.nix { 57 self = luajit_2_1; 58 inherit callPackage; 59 }; 60 61}