luarocks: switch to a less intrusive update-walker metadata style
This commit is contained in:
parent
51174e7b7b
commit
73a82dcc44
|
@ -8,26 +8,17 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
s = # Generated upstream information
|
|
||||||
rec {
|
|
||||||
baseName="luarocks";
|
|
||||||
version="2.4.4";
|
|
||||||
name="${baseName}-${version}";
|
|
||||||
hash="0d7rl60dwh52qh5pfsphgx5ypp7k190h9ri6qpr2yx9kvqrxyf1r";
|
|
||||||
url="http://luarocks.org/releases/luarocks-2.4.4.tar.gz";
|
|
||||||
sha256="0d7rl60dwh52qh5pfsphgx5ypp7k190h9ri6qpr2yx9kvqrxyf1r";
|
|
||||||
};
|
|
||||||
buildInputs = [
|
|
||||||
lua curl makeWrapper which unzip
|
|
||||||
];
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
inherit (s) name version;
|
pname="luarocks";
|
||||||
inherit buildInputs;
|
version="2.4.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
inherit (s) url sha256;
|
url="http://luarocks.org/releases/luarocks-${version}.tar.gz";
|
||||||
|
sha256="0d7rl60dwh52qh5pfsphgx5ypp7k190h9ri6qpr2yx9kvqrxyf1r";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./darwin.patch ];
|
patches = [ ./darwin.patch ];
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
lua -e "" || {
|
lua -e "" || {
|
||||||
|
@ -41,6 +32,11 @@ stdenv.mkDerivation {
|
||||||
configureFlags="$configureFlags --with-lua-include=$lua_inc"
|
configureFlags="$configureFlags --with-lua-include=$lua_inc"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
lua curl makeWrapper which
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
sed -e "1s@.*@#! ${lua}/bin/lua$LUA_SUFFIX@" -i "$out"/bin/*
|
sed -e "1s@.*@#! ${lua}/bin/lua$LUA_SUFFIX@" -i "$out"/bin/*
|
||||||
for i in "$out"/bin/*; do
|
for i in "$out"/bin/*; do
|
||||||
|
@ -73,5 +69,7 @@ stdenv.mkDerivation {
|
||||||
license = licenses.mit ;
|
license = licenses.mit ;
|
||||||
maintainers = with maintainers; [raskin teto];
|
maintainers = with maintainers; [raskin teto];
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
|
downloadPage = "http://luarocks.org/releases/";
|
||||||
|
updateWalker = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue