mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
update-luarocks-packages: use the current nixpkgs
restore the behavior of the previous updater that was using the current revision of nixpkgs instead of an outer one
This commit is contained in:
parent
5b73af6f5b
commit
7292ed91df
2 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#!nix-shell -p nix-prefetch-git luarocks-nix python3 python3Packages.GitPython nix -i python3
|
#!nix-shell update-luarocks-shell.nix -i python3
|
||||||
|
|
||||||
|
|
||||||
# format:
|
# format:
|
||||||
# $ nix run nixpkgs.python3Packages.black -c black update.py
|
# $ nix run nixpkgs.python3Packages.black -c black update.py
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
{ nixpkgs ? import ../.. { }
|
{ nixpkgs ? import ../.. { }
|
||||||
}:
|
}:
|
||||||
with nixpkgs;
|
with nixpkgs;
|
||||||
|
let
|
||||||
|
pyEnv = python3.withPackages(ps: [ ps.GitPython ]);
|
||||||
|
in
|
||||||
mkShell {
|
mkShell {
|
||||||
packages = [
|
packages = [
|
||||||
bash
|
pyEnv
|
||||||
luarocks-nix
|
luarocks-nix
|
||||||
nix-prefetch-scripts
|
nix-prefetch-scripts
|
||||||
parallel
|
|
||||||
];
|
];
|
||||||
LUAROCKS_NIXPKGS_PATH = toString nixpkgs.path;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue