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

30 lines
757 B
Nix
Raw Normal View History

2013-06-07 12:01:22 +02:00
{stdenv, fetchurl, lua, curl}:
let
s = # Generated upstream information
rec {
baseName="luarocks";
2013-10-20 19:08:09 +02:00
version="2.1.0";
2013-06-07 12:01:22 +02:00
name="${baseName}-${version}";
2013-10-20 19:08:09 +02:00
hash="12aqwchzn77yin2ahpxnc3lam5w0xhksrnhf31n3r7cxdsfh446c";
url="http://luarocks.org/releases/luarocks-2.1.0-rc3.tar.gz";
sha256="12aqwchzn77yin2ahpxnc3lam5w0xhksrnhf31n3r7cxdsfh446c";
2013-06-07 12:01:22 +02: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;
};
}