From f868cc3a1cf31e5079883d5f2b7a9fa91a0d0f29 Mon Sep 17 00:00:00 2001 From: Zitrone Date: Thu, 10 Apr 2025 22:00:48 +0200 Subject: [PATCH] xorg: format at the end of updatescript --- pkgs/servers/x11/xorg/update.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/x11/xorg/update.py b/pkgs/servers/x11/xorg/update.py index 63aaf885b5b4..a493f3821e5f 100755 --- a/pkgs/servers/x11/xorg/update.py +++ b/pkgs/servers/x11/xorg/update.py @@ -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)