git.iko.soy/typeable/nixpkgs
on master help sign in
luarocks: switch to a less intrusive update-walker metadata style
commit73a82dcc44800dfbd205031b61ff8bbb3720e421 authorMichael Raskin <7c6f434c@mail.ru> dateWed 6 Mar 2019, 11:53 (8 years ago) parent51174e7
1 file changed+14−16
pkgs/development/tools/misc/luarocks/default.nix+14−16
pkgs/development/tools/misc/luarocks/default.nix+14−16
@@ -8,26 +8,17 @@
88}:
99
1010let
11− s = # Generated upstream information
12− rec {
13− baseName="luarocks";
14− version="2.4.4";
15− name="${baseName}-${version}";
16− hash="0d7rl60dwh52qh5pfsphgx5ypp7k190h9ri6qpr2yx9kvqrxyf1r";
17− url="http://luarocks.org/releases/luarocks-2.4.4.tar.gz";
18− sha256="0d7rl60dwh52qh5pfsphgx5ypp7k190h9ri6qpr2yx9kvqrxyf1r";
19− };
20− buildInputs = [
21− lua curl makeWrapper which unzip
22− ];
2311in
2412
25−stdenv.mkDerivation {
26− inherit (s) name version;
27− inherit buildInputs;
13+stdenv.mkDerivation rec {
14+ pname="luarocks";
15+ version="2.4.4";
16+
2817 src = fetchurl {
29− inherit (s) url sha256;
18+ url="http://luarocks.org/releases/luarocks-${version}.tar.gz";
19+ sha256="0d7rl60dwh52qh5pfsphgx5ypp7k190h9ri6qpr2yx9kvqrxyf1r";
3020 };
21+
3122 patches = [ ./darwin.patch ];
3223 preConfigure = ''
3324 lua -e "" || {
@@ -41,6 +32,11 @@ stdenv.mkDerivation {
4132 configureFlags="$configureFlags --with-lua-include=$lua_inc"
4233 fi
4334 '';
35+
36+ buildInputs = [
37+ lua curl makeWrapper which
38+ ];
39+
4440 postInstall = ''
4541 sed -e "1s@.*@#! ${lua}/bin/lua$LUA_SUFFIX@" -i "$out"/bin/*
4642 for i in "$out"/bin/*; do
@@ -73,5 +69,7 @@ stdenv.mkDerivation {
7369 license = licenses.mit ;
7470 maintainers = with maintainers; [raskin teto];
7571 platforms = platforms.linux ++ platforms.darwin;
72+ downloadPage = "http://luarocks.org/releases/";
73+ updateWalker = true;
7674 };
7775}