luarocks-packages-updater: move to by-name

This commit is contained in:
Matthieu C. 2024-08-24 17:21:33 +02:00 committed by Matthieu Coudron
parent 248893ed96
commit 5f3faeb529
3 changed files with 6 additions and 8 deletions

View File

@ -1,15 +1,14 @@
{ buildPythonApplication
, nix
{ nix
, makeWrapper
, python3Packages
, lib
# , nix-prefetch-git
, nix-prefetch-scripts
, luarocks-nix
, lua5_1
, lua5_2
, lua5_3
, lua5_4
, pluginupdate
}:
let
@ -25,7 +24,7 @@ let
];
in
buildPythonApplication {
python3Packages.buildPythonApplication {
pname = "luarocks-packages-updater";
version = "0.1";
@ -45,7 +44,7 @@ buildPythonApplication {
''
mkdir -p $out/bin $out/lib
cp ${./updater.py} $out/bin/luarocks-packages-updater
cp ${../../../../maintainers/scripts/pluginupdate.py} $out/lib/pluginupdate.py
cp ${pluginupdate} $out/lib/pluginupdate.py
# wrap python scripts
makeWrapperArgs+=( --prefix PATH : "${path}" --prefix PYTHONPATH : "$out/lib" \

View File

@ -16692,11 +16692,10 @@ with pkgs;
luarocks = luaPackages.luarocks;
luarocks-nix = luaPackages.luarocks-nix;
luarocks-packages-updater = callPackage ../development/lua-modules/updater {
inherit (python3Packages) buildPythonApplication ;
luarocks-packages-updater = callPackage ../by-name/lu/luarocks-packages-updater/package.nix {
pluginupdate = ../../maintainers/scripts/pluginupdate.py;
};
luau = callPackage ../development/interpreters/luau { };
lune = callPackage ../development/interpreters/lune { };