Skip to content

Commit

Permalink
Update upload-release script
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jan 3, 2017
1 parent c287e79 commit 5d377ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions maintainers/upload-release.pl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ sub downloadFile {
my ($tarball_x86_64_darwin, $tarball_x86_64_darwin_hash) = downloadFile("binaryTarball.x86_64-darwin", "1");

# Update Nixpkgs in a very hacky way.
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";
Expand Down Expand Up @@ -135,6 +136,9 @@ sub getStorePath {

# Update the website.
my $siteDir = "/home/eelco/Dev/nixos-homepage-pristine";

system("cd $siteDir && git pull") == 0 or die;

write_file("$siteDir/nix-release.tt",
"[%-\n" .
"latestNixVersion = \"$version\"\n" .
Expand Down

0 comments on commit 5d377ac

Please sign in to comment.