tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
treewide: remove `nixfmt-classic` from `updateScript`
zowoq
1 year ago
bd641be4
a8815cdd
+2
-34
7 changed files
expand all
collapse all
unified
split
pkgs
applications
editors
nano
default.nix
by-name
je
jenkins
package.nix
oh
oh-my-zsh
package.nix
sb
sbt-extras
package.nix
development
compilers
scala
2.x.nix
python-modules
types-aiobotocore
update.sh
tools
ammonite
default.nix
-5
pkgs/applications/editors/nano/default.nix
···
9
common-updater-scripts,
10
git,
11
nix,
12
-
nixfmt-classic,
13
coreutils,
14
gnused,
15
callPackage,
···
75
lib.makeBinPath [
76
common-updater-scripts
77
git
78
-
nixfmt-classic
79
nix
80
coreutils
81
gnused
···
87
88
if [ ! "$oldVersion" = "$latestTag" ]; then
89
update-source-version ${pname} "$latestTag" --version-key=version --print-changes
90
-
nixpkgs="$(git rev-parse --show-toplevel)"
91
-
default_nix="$nixpkgs/pkgs/applications/editors/nano/default.nix"
92
-
nixfmt "$default_nix"
93
else
94
echo "${pname} is already up-to-date"
95
fi
···
9
common-updater-scripts,
10
git,
11
nix,
0
12
coreutils,
13
gnused,
14
callPackage,
···
74
lib.makeBinPath [
75
common-updater-scripts
76
git
0
77
nix
78
coreutils
79
gnused
···
85
86
if [ ! "$oldVersion" = "$latestTag" ]; then
87
update-source-version ${pname} "$latestTag" --version-key=version --print-changes
0
0
0
88
else
89
echo "${pname} is already up-to-date"
90
fi
-5
pkgs/by-name/je/jenkins/package.nix
···
8
gnused,
9
makeWrapper,
10
nix,
11
-
nixfmt-classic,
12
openjdk,
13
writeScript,
14
nixosTests,
···
57
gnused
58
jq
59
nix
60
-
nixfmt-classic
61
]
62
}
63
···
70
71
if [ ! "$oldVersion" = "$version" ]; then
72
update-source-version jenkins "$version" "$hash"
73
-
nixpkgs="$(git rev-parse --show-toplevel)"
74
-
default_nix="$nixpkgs/pkgs/by-name/je/jenkins/package.nix"
75
-
nixfmt "$default_nix"
76
else
77
echo "jenkins is already up-to-date"
78
fi
···
8
gnused,
9
makeWrapper,
10
nix,
0
11
openjdk,
12
writeScript,
13
nixosTests,
···
56
gnused
57
jq
58
nix
0
59
]
60
}
61
···
68
69
if [ ! "$oldVersion" = "$version" ]; then
70
update-source-version jenkins "$version" "$hash"
0
0
0
71
else
72
echo "jenkins is already up-to-date"
73
fi
-5
pkgs/by-name/oh/oh-my-zsh/package.nix
···
10
common-updater-scripts,
11
git,
12
nix,
13
-
nixfmt-classic,
14
jq,
15
coreutils,
16
gnused,
···
99
curl
100
cacert
101
git
102
-
nixfmt-classic
103
nix
104
jq
105
coreutils
···
111
latestSha="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits\?sha\=master\&since\=$oldVersion | jq -r '.[0].sha')"
112
113
if [ ! "null" = "$latestSha" ]; then
114
-
nixpkgs="$(git rev-parse --show-toplevel)"
115
-
default_nix="$nixpkgs/pkgs/shells/zsh/oh-my-zsh/default.nix"
116
latestDate="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits/$latestSha | jq '.commit.committer.date' | sed 's|"\(.*\)T.*|\1|g')"
117
update-source-version oh-my-zsh "$latestDate" --rev="$latestSha"
118
-
nixfmt "$default_nix"
119
else
120
echo "${pname} is already up-to-date"
121
fi
···
10
common-updater-scripts,
11
git,
12
nix,
0
13
jq,
14
coreutils,
15
gnused,
···
98
curl
99
cacert
100
git
0
101
nix
102
jq
103
coreutils
···
109
latestSha="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits\?sha\=master\&since\=$oldVersion | jq -r '.[0].sha')"
110
111
if [ ! "null" = "$latestSha" ]; then
0
0
112
latestDate="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits/$latestSha | jq '.commit.committer.date' | sed 's|"\(.*\)T.*|\1|g')"
113
update-source-version oh-my-zsh "$latestDate" --rev="$latestSha"
0
114
else
115
echo "${pname} is already up-to-date"
116
fi
-5
pkgs/by-name/sb/sbt-extras/package.nix
···
10
common-updater-scripts,
11
cacert,
12
git,
13
-
nixfmt-classic,
14
nix,
15
jq,
16
coreutils,
···
66
curl
67
cacert
68
git
69
-
nixfmt-classic
70
nix
71
jq
72
coreutils
···
76
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')"
77
latestSha="$(curl -L -s https://api.github.com/repos/paulp/sbt-extras/commits\?sha\=master\&since\=$oldVersion | jq -r '.[0].sha')"
78
if [ ! "null" = "$latestSha" ]; then
79
-
nixpkgs="$(git rev-parse --show-toplevel)"
80
-
default_nix="$nixpkgs/pkgs/development/tools/build-managers/sbt-extras/default.nix"
81
latestDate="$(curl -L -s https://api.github.com/repos/paulp/sbt-extras/commits/$latestSha | jq '.commit.committer.date' | sed 's|"\(.*\)T.*|\1|g')"
82
update-source-version ${pname} "$latestSha" --version-key=rev
83
update-source-version ${pname} "$latestDate" --ignore-same-hash
84
-
nixfmt "$default_nix"
85
else
86
echo "${pname} is already up-to-date"
87
fi
···
10
common-updater-scripts,
11
cacert,
12
git,
0
13
nix,
14
jq,
15
coreutils,
···
65
curl
66
cacert
67
git
0
68
nix
69
jq
70
coreutils
···
74
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')"
75
latestSha="$(curl -L -s https://api.github.com/repos/paulp/sbt-extras/commits\?sha\=master\&since\=$oldVersion | jq -r '.[0].sha')"
76
if [ ! "null" = "$latestSha" ]; then
0
0
77
latestDate="$(curl -L -s https://api.github.com/repos/paulp/sbt-extras/commits/$latestSha | jq '.commit.committer.date' | sed 's|"\(.*\)T.*|\1|g')"
78
update-source-version ${pname} "$latestSha" --version-key=rev
79
update-source-version ${pname} "$latestDate" --ignore-same-hash
0
80
else
81
echo "${pname} is already up-to-date"
82
fi
-5
pkgs/development/compilers/scala/2.x.nix
···
11
git,
12
gnused,
13
nix,
14
-
nixfmt-classic,
15
majorVersion,
16
}:
17
···
98
git
99
gnused
100
nix
101
-
nixfmt-classic
102
]
103
}
104
versionSelect='v${lib.versions.major version}.${lib.versions.minor version}.*'
105
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')"
106
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')"
107
if [ "$oldVersion" != "$latestTag" ]; then
108
-
nixpkgs="$(git rev-parse --show-toplevel)"
109
-
default_nix="$nixpkgs/pkgs/development/compilers/scala/2.x.nix"
110
update-source-version ${pname} "$latestTag" --version-key=version --print-changes
111
-
nixfmt "$default_nix"
112
else
113
echo "${pname} is already up-to-date"
114
fi
···
11
git,
12
gnused,
13
nix,
0
14
majorVersion,
15
}:
16
···
97
git
98
gnused
99
nix
0
100
]
101
}
102
versionSelect='v${lib.versions.major version}.${lib.versions.minor version}.*'
103
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')"
104
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')"
105
if [ "$oldVersion" != "$latestTag" ]; then
0
0
106
update-source-version ${pname} "$latestTag" --version-key=version --print-changes
0
107
else
108
echo "${pname} is already up-to-date"
109
fi
+1
-3
pkgs/development/python-modules/types-aiobotocore/update.sh
···
1
#!/usr/bin/env nix-shell
2
-
#!nix-shell -i bash -p nix-update nixfmt-classic curl jq
3
4
set -eu -o pipefail
5
···
392
}' ${source_file}
393
394
done
395
-
396
-
nixfmt ${source_file}
···
1
#!/usr/bin/env nix-shell
2
+
#!nix-shell -i bash -p nix-update curl jq
3
4
set -eu -o pipefail
5
···
392
}' ${source_file}
393
394
done
0
0
+1
-6
pkgs/development/tools/ammonite/default.nix
···
6
writeScript,
7
common-updater-scripts,
8
git,
9
-
nixfmt-classic,
10
nix,
11
coreutils,
12
gnused,
···
51
git
52
gnused
53
nix
54
-
nixfmt-classic
55
]
56
}
57
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')"
58
latestTag="$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags ${repo} '*.*.*' | tail --lines=1 | cut --delimiter='/' --fields=3)"
59
if [ "$oldVersion" != "$latestTag" ]; then
60
-
nixpkgs="$(git rev-parse --show-toplevel)"
61
-
default_nix="$nixpkgs/pkgs/development/tools/ammonite/default.nix"
62
update-source-version ${pname}_2_12 "$latestTag" --version-key=version --print-changes
63
-
sed -i "s|$latestTag|$oldVersion|g" "$default_nix"
64
update-source-version ${pname}_2_13 "$latestTag" --version-key=version --print-changes
65
-
nixfmt "$default_nix"
66
else
67
echo "${pname} is already up-to-date"
68
fi
···
6
writeScript,
7
common-updater-scripts,
8
git,
0
9
nix,
10
coreutils,
11
gnused,
···
50
git
51
gnused
52
nix
0
53
]
54
}
55
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion ${pname}" | tr -d '"')"
56
latestTag="$(git -c 'versionsort.suffix=-' ls-remote --exit-code --refs --sort='version:refname' --tags ${repo} '*.*.*' | tail --lines=1 | cut --delimiter='/' --fields=3)"
57
if [ "$oldVersion" != "$latestTag" ]; then
0
0
58
update-source-version ${pname}_2_12 "$latestTag" --version-key=version --print-changes
59
+
sed -i "s|$latestTag|$oldVersion|g" "$(git rev-parse --show-toplevel)/pkgs/development/tools/ammonite/default.nix"
60
update-source-version ${pname}_2_13 "$latestTag" --version-key=version --print-changes
0
61
else
62
echo "${pname} is already up-to-date"
63
fi