nixpkgs/pkgs/development/tools/misc/luarocks/default.nix

30 lines
753 B
Nix
Raw Normal View History

2013-06-07 11:01:22 +01:00
{stdenv, fetchurl, lua, curl}:
let
s = # Generated upstream information
rec {
baseName="luarocks";
2014-03-08 17:11:36 +00:00
version="2.1.2";
2013-06-07 11:01:22 +01:00
name="${baseName}-${version}";
2014-03-08 17:11:36 +00:00
hash="1wwz71ymzjcyw8pz36yiw2x87c6v8nx5vdcd7zibm1n815v5qqk2";
url="http://luarocks.org/releases/luarocks-2.1.2.tar.gz";
sha256="1wwz71ymzjcyw8pz36yiw2x87c6v8nx5vdcd7zibm1n815v5qqk2";
2013-06-07 11:01:22 +01:00
};
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;
};
}