···1415 passthru.updateScript = ./update.sh;
1617- patches = [
18- (fetchpatch {
19- url = "https://github.com/serokell/nixfmt/commit/ca9c8975ed671112fdfce94f2e9e2ad3de480c9a.patch";
20- hash = "sha256-UOSAYahSKBsqPMVcQJ3H26Eg2xpPAsNOjYMI6g+WTYU=";
21- })
22- ];
23-24 maintainers = lib.teams.formatter.members;
2526 # These tests can be run with the following command.
···1415 passthru.updateScript = ./update.sh;
16000000017 maintainers = lib.teams.formatter.members;
1819 # These tests can be run with the following command.
+3-3
pkgs/by-name/ni/nixfmt-rfc-style/update.sh
···13date_file="${script_dir}/date.txt"
1415# This is the latest version of nixfmt-rfc-style branch on GitHub.
16-new_version=$(curl --silent https://api.github.com/repos/piegamesde/nixfmt/git/refs/heads/rfc101-style | jq '.object.sha' --raw-output)
17-new_date=$(curl --silent https://api.github.com/repos/piegamesde/nixfmt/git/commits/"$new_version" | jq '.committer.date' --raw-output)
1819echo "Updating nixfmt-rfc-style to version $new_date."
20echo "Running cabal2nix and outputting to ${derivation_file}..."
···25EOF
2627cabal2nix --jailbreak \
28- "https://github.com/piegamesde/nixfmt/archive/${new_version}.tar.gz" \
29 >> "$derivation_file"
3031date --date="$new_date" -I > "$date_file"
···13date_file="${script_dir}/date.txt"
1415# This is the latest version of nixfmt-rfc-style branch on GitHub.
16+new_version=$(curl --silent https://api.github.com/repos/nixos/nixfmt/git/refs/heads/master | jq '.object.sha' --raw-output)
17+new_date=$(curl --silent https://api.github.com/repos/nixos/nixfmt/git/commits/"$new_version" | jq '.committer.date' --raw-output)
1819echo "Updating nixfmt-rfc-style to version $new_date."
20echo "Running cabal2nix and outputting to ${derivation_file}..."
···25EOF
2627cabal2nix --jailbreak \
28+ "https://github.com/nixos/nixfmt/archive/${new_version}.tar.gz" \
29 >> "$derivation_file"
3031date --date="$new_date" -I > "$date_file"