aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-05-14 14:03:53 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-05-14 14:03:53 +0200
commitde9e43c2ea8ac8752d42660c17a7b683682ef38b (patch)
tree35d7aa5164a50881bba66314aacf60f24224e565
parent340f831ebe9d74659b84667b96251b7ab0edd09d (diff)
Update nix-fallback-paths.nix only
-rwxr-xr-xmaintainers/upload-release.pl16
1 files changed, 2 insertions, 14 deletions
diff --git a/maintainers/upload-release.pl b/maintainers/upload-release.pl
index 6f3882a12..c2933300f 100755
--- a/maintainers/upload-release.pl
+++ b/maintainers/upload-release.pl
@@ -133,20 +133,8 @@ for my $fn (glob "$tmpDir/*") {
exit if $version =~ /pre/;
-# Update Nixpkgs in a very hacky way.
+# Update nix-fallback-paths.nix.
system("cd $nixpkgsDir && git pull") == 0 or die;
-my $oldName = `nix-instantiate --eval $nixpkgsDir -A nix.name`; chomp $oldName;
-my $oldHash = `nix-instantiate --eval $nixpkgsDir -A nix.src.outputHash`; chomp $oldHash;
-print STDERR "old stable version in Nixpkgs = $oldName / $oldHash\n";
-
-my $fn = "$nixpkgsDir/pkgs/tools/package-management/nix/default.nix";
-my $oldFile = read_file($fn);
-$oldFile =~ s/$oldName/"$releaseName"/g;
-$oldFile =~ s/$oldHash/"$tarballHash"/g;
-write_file($fn, $oldFile);
-
-$oldName =~ s/nix-//g;
-$oldName =~ s/"//g;
sub getStorePath {
my ($jobName) = @_;
@@ -167,7 +155,7 @@ write_file("$nixpkgsDir/nixos/modules/installer/tools/nix-fallback-paths.nix",
" x86_64-darwin = \"" . getStorePath("build.x86_64-darwin") . "\";\n" .
"}\n");
-system("cd $nixpkgsDir && git commit -a -m 'nix: $oldName -> $version'") == 0 or die;
+system("cd $nixpkgsDir && git commit -a -m 'nix-fallback-paths.nix: Update to $version'") == 0 or die;
# Update the "latest" symlink.
$channelsBucket->add_key(