Skip to content

Commit

Permalink
Merge pull request #503 from serokell/krendelhoff/chore-macos-shell-h…
Browse files Browse the repository at this point in the history
…otfix

v14.0~rc1 release hotfixes
  • Loading branch information
krendelhoff2 authored Jul 22, 2022
2 parents 1a01888 + 5b78732 commit b87b8f0
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 24 deletions.
6 changes: 4 additions & 2 deletions .buildkite/pipeline-for-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

env:
USE_NEWER_NIX: 1
SET_VERSION: "export TEZOS_VERSION=\"$(cat meta.json | jq -r '.tezos_ref' | cut -d'/' -f3)\""


steps:
- label: Check for new Tezos release
Expand All @@ -16,7 +18,7 @@ steps:
agents:
queue: "docker"
commands:
- export TEZOS_VERSION="$(cat nix/nix/sources.json | jq -r '.tezos.ref' | cut -d'/' -f3)"
- eval "$SET_VERSION"
- ./docker/docker-tezos-packages.sh --os ubuntu --type source
- ./docker/docker-tezos-packages.sh --os fedora --type source
artifact_paths:
Expand All @@ -27,7 +29,7 @@ steps:
depends_on:
- "build-source-packages"
commands:
- export TEZOS_VERSION="$(cat nix/nix/sources.json | jq -r '.tezos.ref' | cut -d'/' -f3)"
- eval "$SET_VERSION"
- buildkite-agent artifact download "out/*" . --step build-source-packages
- ./scripts/publish-native-packages.sh out

Expand Down
2 changes: 1 addition & 1 deletion Formula/tezos-accuser-013-PtJakart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class << self

version "v14.0-rc1-1"

build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]
build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]
build_dependencies.each do |dependency|
depends_on dependency => :build
end
Expand Down
6 changes: 3 additions & 3 deletions Formula/tezos-accuser-014-PtKathma.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2022 Oxhead Alpha
# SPDX-License-Identifier: LicenseRef-MIT-OA

class TezosAccuser014PtKathma < Formula
class TezosAccuser014Ptkathma < Formula
@all_bins = []

class << self
Expand All @@ -13,7 +13,7 @@ class << self

version "v14.0-rc1-1"

build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]
build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]
build_dependencies.each do |dependency|
depends_on dependency => :build
end
Expand All @@ -25,7 +25,7 @@ class << self
desc "Daemon for accusing"

bottle do
root_url "https://github.com/serokell/tezos-packaging/releases/download/#{TezosAccuser014PtKathma.version}/"
root_url "https://github.com/serokell/tezos-packaging/releases/download/#{TezosAccuser014Ptkathma.version}/"
end

def make_deps
Expand Down
2 changes: 1 addition & 1 deletion Formula/tezos-admin-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class << self

version "v14.0-rc1-1"

build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]
build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]
build_dependencies.each do |dependency|
depends_on dependency => :build
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/tezos-baker-013-PtJakart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class << self

version "v14.0-rc1-1"

build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]
build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]
build_dependencies.each do |dependency|
depends_on dependency => :build
end
Expand Down
6 changes: 3 additions & 3 deletions Formula/tezos-baker-014-PtKathma.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2022 Oxhead Alpha
# SPDX-License-Identifier: LicenseRef-MIT-OA

class TezosBaker014PtKathma < Formula
class TezosBaker014Ptkathma < Formula
@all_bins = []

class << self
Expand All @@ -13,7 +13,7 @@ class << self

version "v14.0-rc1-1"

build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]
build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]
build_dependencies.each do |dependency|
depends_on dependency => :build
end
Expand All @@ -25,7 +25,7 @@ class << self
desc "Daemon for baking"

bottle do
root_url "https://github.com/serokell/tezos-packaging/releases/download/#{TezosBaker014PtKathma.version}/"
root_url "https://github.com/serokell/tezos-packaging/releases/download/#{TezosBaker014Ptkathma.version}/"
end

def make_deps
Expand Down
2 changes: 1 addition & 1 deletion Formula/tezos-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class << self

version "v14.0-rc1-1"

build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]
build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]
build_dependencies.each do |dependency|
depends_on dependency => :build
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/tezos-codec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class << self

version "v14.0-rc1-1"

build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]
build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]
build_dependencies.each do |dependency|
depends_on dependency => :build
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/tezos-node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class << self

version "v14.0-rc1-1"

build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]
build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]
build_dependencies.each do |dependency|
depends_on dependency => :build
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/tezos-signer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class << self

version "v14.0-rc1-1"

build_dependencies = %w[pkg-config autoconf rsync wget rustup-init]
build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init]
build_dependencies.each do |dependency|
depends_on dependency => :build
end
Expand Down
1 change: 1 addition & 0 deletions docker/package/package_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def get_build_deps(args):
"opam",
"git",
"autoconf",
"coreutils",
]


Expand Down
17 changes: 10 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
};

outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, flake-utils, serokell-nix, nix, ... }:
let
pkgs-darwin = nixpkgs-unstable.legacyPackages."aarch64-darwin";
in pkgs-darwin.lib.recursiveUpdate
{
nixosModules = {
tezos-node = import ./nix/modules/tezos-node.nix;
Expand All @@ -33,7 +36,10 @@
tezos-signer = import ./nix/modules/tezos-signer.nix;
};

} // flake-utils.lib.eachSystem [
devShells."aarch64-darwin".autorelease-macos =
import ./scripts/macos-shell.nix { pkgs = pkgs-darwin; };

} (flake-utils.lib.eachSystem [
"x86_64-linux"
] (system:
let
Expand All @@ -60,8 +66,6 @@
overlays = [(_: _: { nix = nix.packages.${system}.default; })];
};

pkgs-darwin = nixpkgs-unstable.legacyPackages."aarch64-darwin";

callPackage = pkg: input:
import pkg (inputs // { inherit sources protocols meta pkgs; } // input);

Expand All @@ -73,20 +77,19 @@

binaries = callPackage ./nix {};

tezos-release = callPackage ./release.nix {};
release = callPackage ./release.nix {};

in {

legacyPackages = unstable;

release = tezos-release;
inherit release;

packages = binaries // { default = self.packages.${system}.binaries; };

devShells = {
buildkite = callPackage ./.buildkite/shell.nix {};
autorelease = callPackage ./scripts/shell.nix {};
autorelease-macos = callPackage ./scripts/macos-shell.nix { pkgs = pkgs-darwin; };
dev = callPackage ./shell.nix { pkgs = unstable; };
};

Expand All @@ -96,5 +99,5 @@
};

binaries-test = callPackage ./tests/tezos-binaries.nix {};
});
}));
}
3 changes: 1 addition & 2 deletions scripts/build-all-bottles.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#! /usr/bin/env nix-shell
#! nix-shell .. -A autorelease-macos -i bash
#! /usr/bin/env bash
# shellcheck shell=bash

# SPDX-FileCopyrightText: 2022 Oxhead Alpha
Expand Down

0 comments on commit b87b8f0

Please sign in to comment.