treewide: remove `nixfmt-classic` from `updateScript`

zowoq bd641be4 a8815cdd

Changed files
+2 -34
pkgs
applications
editors
by-name
je
jenkins
oh
oh-my-zsh
sb
sbt-extras
development
compilers
scala
python-modules
types-aiobotocore
tools
ammonite
-5
pkgs/applications/editors/nano/default.nix
···
common-updater-scripts,
git,
nix,
-
nixfmt-classic,
coreutils,
gnused,
callPackage,
···
lib.makeBinPath [
common-updater-scripts
git
-
nixfmt-classic
nix
coreutils
gnused
···
if [ ! "$oldVersion" = "$latestTag" ]; then
update-source-version ${pname} "$latestTag" --version-key=version --print-changes
-
nixpkgs="$(git rev-parse --show-toplevel)"
-
default_nix="$nixpkgs/pkgs/applications/editors/nano/default.nix"
-
nixfmt "$default_nix"
else
echo "${pname} is already up-to-date"
fi
···
common-updater-scripts,
git,
nix,
coreutils,
gnused,
callPackage,
···
lib.makeBinPath [
common-updater-scripts
git
nix
coreutils
gnused
···
if [ ! "$oldVersion" = "$latestTag" ]; then
update-source-version ${pname} "$latestTag" --version-key=version --print-changes
else
echo "${pname} is already up-to-date"
fi
-5
pkgs/by-name/je/jenkins/package.nix
···
gnused,
makeWrapper,
nix,
-
nixfmt-classic,
openjdk,
writeScript,
nixosTests,
···
gnused
jq
nix
-
nixfmt-classic
]
}
···
if [ ! "$oldVersion" = "$version" ]; then
update-source-version jenkins "$version" "$hash"
-
nixpkgs="$(git rev-parse --show-toplevel)"
-
default_nix="$nixpkgs/pkgs/by-name/je/jenkins/package.nix"
-
nixfmt "$default_nix"
else
echo "jenkins is already up-to-date"
fi
···
gnused,
makeWrapper,
nix,
openjdk,
writeScript,
nixosTests,
···
gnused
jq
nix
]
}
···
if [ ! "$oldVersion" = "$version" ]; then
update-source-version jenkins "$version" "$hash"
else
echo "jenkins is already up-to-date"
fi
-5
pkgs/by-name/oh/oh-my-zsh/package.nix
···
common-updater-scripts,
git,
nix,
-
nixfmt-classic,
jq,
coreutils,
gnused,
···
curl
cacert
git
-
nixfmt-classic
nix
jq
coreutils
···
latestSha="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits\?sha\=master\&since\=$oldVersion | jq -r '.[0].sha')"
if [ ! "null" = "$latestSha" ]; then
-
nixpkgs="$(git rev-parse --show-toplevel)"
-
default_nix="$nixpkgs/pkgs/shells/zsh/oh-my-zsh/default.nix"
latestDate="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits/$latestSha | jq '.commit.committer.date' | sed 's|"\(.*\)T.*|\1|g')"
update-source-version oh-my-zsh "$latestDate" --rev="$latestSha"
-
nixfmt "$default_nix"
else
echo "${pname} is already up-to-date"
fi
···
common-updater-scripts,
git,
nix,
jq,
coreutils,
gnused,
···
curl
cacert
git
nix
jq
coreutils
···
latestSha="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits\?sha\=master\&since\=$oldVersion | jq -r '.[0].sha')"
if [ ! "null" = "$latestSha" ]; then
latestDate="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits/$latestSha | jq '.commit.committer.date' | sed 's|"\(.*\)T.*|\1|g')"
update-source-version oh-my-zsh "$latestDate" --rev="$latestSha"
else
echo "${pname} is already up-to-date"
fi
-5
pkgs/by-name/sb/sbt-extras/package.nix
···
common-updater-scripts,
cacert,
git,
-
nixfmt-classic,
nix,
jq,
coreutils,
···
curl
cacert
git
-
nixfmt-classic
nix
jq
coreutils
···
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')"
latestSha="$(curl -L -s https://api.github.com/repos/paulp/sbt-extras/commits\?sha\=master\&since\=$oldVersion | jq -r '.[0].sha')"
if [ ! "null" = "$latestSha" ]; then
-
nixpkgs="$(git rev-parse --show-toplevel)"
-
default_nix="$nixpkgs/pkgs/development/tools/build-managers/sbt-extras/default.nix"
latestDate="$(curl -L -s https://api.github.com/repos/paulp/sbt-extras/commits/$latestSha | jq '.commit.committer.date' | sed 's|"\(.*\)T.*|\1|g')"
update-source-version ${pname} "$latestSha" --version-key=rev
update-source-version ${pname} "$latestDate" --ignore-same-hash
-
nixfmt "$default_nix"
else
echo "${pname} is already up-to-date"
fi
···
common-updater-scripts,
cacert,
git,
nix,
jq,
coreutils,
···
curl
cacert
git
nix
jq
coreutils
···
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')"
latestSha="$(curl -L -s https://api.github.com/repos/paulp/sbt-extras/commits\?sha\=master\&since\=$oldVersion | jq -r '.[0].sha')"
if [ ! "null" = "$latestSha" ]; then
latestDate="$(curl -L -s https://api.github.com/repos/paulp/sbt-extras/commits/$latestSha | jq '.commit.committer.date' | sed 's|"\(.*\)T.*|\1|g')"
update-source-version ${pname} "$latestSha" --version-key=rev
update-source-version ${pname} "$latestDate" --ignore-same-hash
else
echo "${pname} is already up-to-date"
fi
-5
pkgs/development/compilers/scala/2.x.nix
···
git,
gnused,
nix,
-
nixfmt-classic,
majorVersion,
}:
···
git
gnused
nix
-
nixfmt-classic
]
}
versionSelect='v${lib.versions.major version}.${lib.versions.minor version}.*'
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')"
latestTag="$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags ${repo} "$versionSelect" | tail --lines=1 | cut --delimiter='/' --fields=3 | sed 's|^v||g')"
if [ "$oldVersion" != "$latestTag" ]; then
-
nixpkgs="$(git rev-parse --show-toplevel)"
-
default_nix="$nixpkgs/pkgs/development/compilers/scala/2.x.nix"
update-source-version ${pname} "$latestTag" --version-key=version --print-changes
-
nixfmt "$default_nix"
else
echo "${pname} is already up-to-date"
fi
···
git,
gnused,
nix,
majorVersion,
}:
···
git
gnused
nix
]
}
versionSelect='v${lib.versions.major version}.${lib.versions.minor version}.*'
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')"
latestTag="$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags ${repo} "$versionSelect" | tail --lines=1 | cut --delimiter='/' --fields=3 | sed 's|^v||g')"
if [ "$oldVersion" != "$latestTag" ]; then
update-source-version ${pname} "$latestTag" --version-key=version --print-changes
else
echo "${pname} is already up-to-date"
fi
+1 -3
pkgs/development/python-modules/types-aiobotocore/update.sh
···
#!/usr/bin/env nix-shell
-
#!nix-shell -i bash -p nix-update nixfmt-classic curl jq
set -eu -o pipefail
···
}' ${source_file}
done
-
-
nixfmt ${source_file}
···
#!/usr/bin/env nix-shell
+
#!nix-shell -i bash -p nix-update curl jq
set -eu -o pipefail
···
}' ${source_file}
done
+1 -6
pkgs/development/tools/ammonite/default.nix
···
writeScript,
common-updater-scripts,
git,
-
nixfmt-classic,
nix,
coreutils,
gnused,
···
git
gnused
nix
-
nixfmt-classic
]
}
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')"
latestTag="$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags ${repo} '*.*.*' | tail --lines=1 | cut --delimiter='/' --fields=3)"
if [ "$oldVersion" != "$latestTag" ]; then
-
nixpkgs="$(git rev-parse --show-toplevel)"
-
default_nix="$nixpkgs/pkgs/development/tools/ammonite/default.nix"
update-source-version ${pname}_2_12 "$latestTag" --version-key=version --print-changes
-
sed -i "s|$latestTag|$oldVersion|g" "$default_nix"
update-source-version ${pname}_2_13 "$latestTag" --version-key=version --print-changes
-
nixfmt "$default_nix"
else
echo "${pname} is already up-to-date"
fi
···
writeScript,
common-updater-scripts,
git,
nix,
coreutils,
gnused,
···
git
gnused
nix
]
}
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')"
latestTag="$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags ${repo} '*.*.*' | tail --lines=1 | cut --delimiter='/' --fields=3)"
if [ "$oldVersion" != "$latestTag" ]; then
update-source-version ${pname}_2_12 "$latestTag" --version-key=version --print-changes
+
sed -i "s|$latestTag|$oldVersion|g" "$(git rev-parse --show-toplevel)/pkgs/development/tools/ammonite/default.nix"
update-source-version ${pname}_2_13 "$latestTag" --version-key=version --print-changes
else
echo "${pname} is already up-to-date"
fi