Skip to content

Commit 8656ab5

Browse files
committed
fix: build release on macOS 14 (#263)
Closes #249
1 parent 0370a7a commit 8656ab5

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.rtx.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[tools]
22
erlang = "26.0.2"
33
elixir = "1.15.5-otp-26"
4-
zig = "0.10.0"
4+
zig = "0.11.0"

flake.nix

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@
5454
erlang = beamPackages.erlang;
5555
elixir = beamPackages.elixir_1_15;
5656

57-
nativeBuildInputs = [ pkgs.xz pkgs.zig_0_10 pkgs._7zz ];
57+
nativeBuildInputs = [ pkgs.xz pkgs.zig_0_11 pkgs._7zz ];
5858

5959
mixFodDeps = beamPackages.fetchMixDeps {
6060
inherit src version;
6161
pname = "${pname}-deps";
62-
hash = "sha256-sRve0L7qFw5vEsespIXVg4loSej+oLO1ewdmT6qGExw=";
62+
hash = "sha256-ekB71eDfcFqC3JojFMnlGRQ/XiPwbUqFVor7ndpUd90=";
6363
};
6464

6565
preConfigure = ''
@@ -83,14 +83,16 @@
8383
''
8484
else "";
8585

86-
postInstall = ''
87-
chmod +x ./burrito_out/*
88-
cp -r ./burrito_out "$out"
86+
postInstall =
87+
if system == "x86_64-linux" then ''
88+
chmod +x ./burrito_out/*
89+
cp -r ./burrito_out "$out"
8990
90-
if [ "${system}" == "x86_64-linux" ]; then
9191
patchelf --set-interpreter ${pkgs.glibc}/lib/ld-linux-x86-64.so.2 "$out/burrito_out/next_ls_linux_amd64"
92-
fi
93-
'';
92+
'' else ''
93+
chmod +x ./burrito_out/*
94+
cp -r ./burrito_out "$out"
95+
'';
9496
};
9597
in
9698
{

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%{
2-
"burrito": {:git, "https://github.com/burrito-elixir/burrito.git", "a86857636eaba9a7fa179fd970ed6cf82e9e7d59", []},
2+
"burrito": {:git, "https://github.com/burrito-elixir/burrito.git", "01f4781df21bb6657c68ef9b780daf194dd1aced", []},
33
"bypass": {:hex, :bypass, "2.1.0", "909782781bf8e20ee86a9cabde36b259d44af8b9f38756173e8f5e2e1fabb9b1", [:mix], [{:plug, "~> 1.7", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.0", [hex: :plug_cowboy, repo: "hexpm", optional: false]}, {:ranch, "~> 1.3", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "d9b5df8fa5b7a6efa08384e9bbecfe4ce61c77d28a4282f79e02f1ef78d96b80"},
44
"castore": {:hex, :castore, "1.0.3", "7130ba6d24c8424014194676d608cb989f62ef8039efd50ff4b3f33286d06db8", [:mix], [], "hexpm", "680ab01ef5d15b161ed6a95449fac5c6b8f60055677a8e79acf01b27baa4390b"},
55
"cc_precompiler": {:hex, :cc_precompiler, "0.1.8", "933a5f4da3b19ee56539a076076ce4d7716d64efc8db46fd066996a7e46e2bfd", [:mix], [{:elixir_make, "~> 0.7.3", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "176bdf4366956e456bf761b54ad70bc4103d0269ca9558fd7cee93d1b3f116db"},

0 commit comments

Comments
 (0)