mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
xorg: format at the end of updatescript
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell --pure --keep NIX_PATH -i python3 -p nix git "python3.withPackages (ps: [ ps. packaging ps.beautifulsoup4 ps.requests ])"
|
||||
#!nix-shell --pure --keep NIX_PATH -i python3 -p nix git nixfmt-rfc-style "python3.withPackages (ps: [ ps. packaging ps.beautifulsoup4 ps.requests ])"
|
||||
|
||||
# Usage: Run ./update.py from the directory containing tarballs.list. The script checks for the
|
||||
# latest versions of all packages, updates the expressions if any update is found, and commits
|
||||
@@ -93,6 +93,10 @@ print("Generating updated expr (slow)...")
|
||||
|
||||
subprocess.run(["./generate-expr-from-tarballs.pl", "tarballs.list"], check=True)
|
||||
|
||||
print("Formatting generated expr...")
|
||||
|
||||
subprocess.run(["nixfmt", "default.nix"], check=True)
|
||||
|
||||
print("Committing...")
|
||||
|
||||
subprocess.run(["git", "add", "default.nix", "tarballs.list"], check=True)
|
||||
|
||||
Reference in New Issue
Block a user