Luarocks: new package

This commit is contained in:
Michael Raskin 2013-06-07 14:01:22 +04:00
parent 4213b4aacb
commit 2baaaebf57
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{stdenv, fetchurl, lua, curl}:
let
s = # Generated upstream information
rec {
baseName="luarocks";
version="2.0.13";
name="${baseName}-${version}";
hash="1cpdi61dwcc2i4bwrn7bb8fibkd1s75jrr0bjcbs8p76rn6hkb2y";
url="http://luarocks.org/releases/luarocks-2.0.13-rc1.tar.gz";
sha256="1cpdi61dwcc2i4bwrn7bb8fibkd1s75jrr0bjcbs8p76rn6hkb2y";
};
buildInputs = [
lua curl
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
meta = {
inherit (s) version;
description = ''A package manager for Lua'';
license = stdenv.lib.licenses.mit ;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -0,0 +1 @@
url http://luarocks.org/releases/

View File

@ -2943,6 +2943,10 @@ let
lua5_0 = callPackage ../development/interpreters/lua-5/5.0.3.nix { };
lua5_1 = callPackage ../development/interpreters/lua-5/5.1.nix { };
luarocks = callPackage ../development/tools/misc/luarocks {
lua = lua5;
};
maude = callPackage ../development/interpreters/maude { };
octave = callPackage ../development/interpreters/octave {