Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faild to install on aarch64-darwin with nix #166

Closed
ryoppippi opened this issue Sep 23, 2024 · 5 comments · Fixed by #170
Closed

Faild to install on aarch64-darwin with nix #166

ryoppippi opened this issue Sep 23, 2024 · 5 comments · Fixed by #170

Comments

@ryoppippi
Copy link
Contributor

ryoppippi commented Sep 23, 2024

Error

~/g/g/c/leetcode-cli master• 11s ❱ nix develop --command 'cargo build --release'
warning: Git tree '/Users/ryoppippi/ghq/github.com/clearloop/leetcode-cli' is dirty
error: builder for '/nix/store/8fi3cmddl5cd15vaxg80dcdvgikj0svj-cargo-about-0.6.0.drv' failed with exit code 101;
       last 25 log lines:
       >    Compiling parking_lot v0.12.1
       >    Compiling handlebars v4.5.0
       >    Compiling clap v4.4.11
       >    Compiling ignore v0.4.21
       >    Compiling mimalloc v0.1.39
       >    Compiling codespan v0.11.1
       >    Compiling spdx v0.10.2
       >    Compiling fern v0.6.2
       >    Compiling home v0.5.5
       >    Compiling nu-ansi-term v0.49.0
       >    Compiling rustls-webpki v0.101.7
       >    Compiling sct v0.7.1
       >    Compiling tokio-rustls v0.24.1
       >    Compiling hyper-rustls v0.24.2
       >    Compiling reqwest v0.11.22
       >    Compiling cd v0.2.1
       >    Compiling cargo-about v0.6.0 (/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source)
       > error: linking with `/nix/store/vwh2qqal1q101wv4jy40giavp73q0msd-clang-wrapper-16.0.6/bin/cc` failed: exit status: 1
       >   |
       >   = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/li
b/rustlib/aarch64-apple-darwin/bin:/nix/store/30m4ghksg1dlnwfy3qybfixjwnrhgrh9-cargo-1.74.0/bin:/nix/store/6a8n27y9r10pnr653344yybxr4qpd7g9-cargo-auditable
-0.6.1/bin:/nix/store/xanxf5bwj0ddd7q34jlafask4475vvpr-pkg-config-wrapper-0.29.2/bin:/nix/store/rp517rlw5kbxcwm382ap5lg0jvn4nakr-auditable-cargo-1.74.0/bin
:/nix/store/30m4ghksg1dlnwfy3qybfixjwnrhgrh9-cargo-1.74.0/bin:/nix/store/i2q9ff0fpgr20zza6kr6nlpki6mn43if-rustc-wrapper-1.74.0/bin:/nix/store/vwh2qqal1q101
wv4jy40giavp73q0msd-clang-wrapper-16.0.6/bin:/nix/store/3vzbr8yb4c233lhi1qz78b8kaaxrjqcj-clang-16.0.6/bin:/nix/store/pzajj7gw0nazs3vzp6jld53q8ird5izr-coreu
tils-9.4/bin:/nix/store/0i7w6qsij8akg6h39qn67w9ig5hirv1a-cctools-binutils-darwin-wrapper-16.0.6-973.0.1/bin:/nix/store/i4sfjfz08vmnrj84asl2j5imakga12za-cct
ools-binutils-darwin-16.0.6-973.0.1/bin:/nix/store/pzajj7gw0nazs3vzp6jld53q8ird5izr-coreutils-9.4/bin:/nix/store/6x5inimwy8rlvf678yy080zccbw71alb-findutils
-4.9.0/bin:/nix/store/01bzxsyn8dqz9fsdhp9r6ya796g5ydmf-diffutils-3.10/bin:/nix/store/9z9k8dwhhiryr7z2pz70zca0vwa15yqc-gnused-4.9/bin:/nix/store/zsm4xd52742
7rnjfnvfhvsld2n57b822-gnugrep-3.11/bin:/nix/store/hhc2x65zvp89lh15grqk21r6dcvifggy-gawk-5.2.2/bin:/nix/store/gclclfhq9blxp32lv8kxm9iv5060rx5f-gnutar-1.35/b
in:/nix/store/crpi4clk07gy760ydbb710f74dy8q6c9-gzip-1.13/bin:/nix/store/qay0pa86lb712162d6m5lyw62iczb71d-bzip2-1.0.8-bin/bin:/nix/store/zc9qsb0rzlw0ckhy709
7frcwb4pkfx3d-gnumake-4.4.1/bin:/nix/store/6nxav88iiz0g8m598xy643f8hhdz5kkx-bash-5.2-p21/bin:/nix/store/kizmwlnj40d11ixbap74c0syaqxn05wc-patch-2.7.6/bin:/n
ix/store/xcy0fr1dangwh9r9isay6fqbg91g5b3h-xz-5.4.5-bin/bin:/nix/store/x1bzwj6pz7f3ajg5y36x07b1328jzx7r-file-5.45/bin" VSLANG="1033" ZERO_AR_DATE="1" "/nix/
store/vwh2qqal1q101wv4jy40giavp73q0msd-clang-wrapper-16.0.6/bin/cc" "-arch" "arm64" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/rustcUUM28G/symbols.o" 
"/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/cargo_about-48623f6db9738e2e.cargo_about.b8fecc9626984f5e-c
gu.00.rcgu.o" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/cargo_about-48623f6db9738e2e.cargo_about.b8fe
cc9626984f5e-cgu.01.rcgu.o" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/cargo_about-48623f6db9738e2e.ca
rgo_about.b8fecc9626984f5e-cgu.02.rcgu.o" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/cargo_about-48623
f6db9738e2e.cargo_about.b8fecc9626984f5e-cgu.03.rcgu.o" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/car
go_about-48623f6db9738e2e.cargo_about.b8fecc9626984f5e-cgu.04.rcgu.o" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/re
lease/deps/cargo_about-48623f6db9738e2e.cargo_about.b8fecc9626984f5e-cgu.05.rcgu.o" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-a
pple-darwin/release/deps/cargo_about-48623f6db9738e2e.cargo_about.b8fecc9626984f5e-cgu.06.rcgu.o" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/ta
rget/aarch64-apple-darwin/release/deps/cargo_about-48623f6db9738e2e.cargo_about.b8fecc9626984f5e-cgu.07.rcgu.o" "/private/tmp/nix-build-cargo-about-0.6.0.d
rv-1/source/target/aarch64-apple-darwin/release/deps/cargo_about-48623f6db9738e2e.cargo_about.b8fecc9626984f5e-cgu.08.rcgu.o" "/private/tmp/nix-build-cargo
-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/cargo_about-48623f6db9738e2e.cargo_about.b8fecc9626984f5e-cgu.09.rcgu.o" "/private/tmp/n
ix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/cargo_about-48623f6db9738e2e.cargo_about.b8fecc9626984f5e-cgu.10.rcgu.o" "
/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/cargo_about-48623f6db9738e2e.cargo_about.b8fecc9626984f5e-cg
u.11.rcgu.o" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/cargo_about-48623f6db9738e2e.cargo_about.b8fec
c9626984f5e-cgu.12.rcgu.o" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/cargo_about-48623f6db9738e2e.car
go_about.b8fecc9626984f5e-cgu.13.rcgu.o" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/cargo_about-48623f
6db9738e2e.cargo_about.b8fecc9626984f5e-cgu.14.rcgu.o" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/carg
o_about-48623f6db9738e2e.cargo_about.b8fecc9626984f5e-cgu.15.rcgu.o" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/rel
ease/deps/cargo_about-48623f6db9738e2e.3h7ncb3gl2otexzl.rcgu.o" "-L" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/rel
ease/deps" "-L" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/release/deps" "-L" "/nix/store/szwmfd1281jvbpmibfgy2jddwizl5yyd-zstd-1.5.5/li
b" "-L" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/build/ring-ed3c745b81bdfd90/out" "-L" "/private/tmp/nix-
build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/build/libmimalloc-sys-a4cafd20d64cc996/out" "-L" "/nix/store/y24qqyfbnnxza5841hd9h
nda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/d
eps/libtime-6e2a09602083d1dd.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libtime_core-efadf65c691
ff3c0.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libderanged-d1f01d69425948c3.rlib" "/private/tm
p/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libpowerfmt-c2df2dad80d70200.rlib" "/private/tmp/nix-build-cargo-about-
0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libfern-ccb6433a4703aace.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aa
rch64-apple-darwin/release/deps/libmimalloc-9297449e19fde639.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/relea
se/deps/liblibmimalloc_sys-9748289acbe57bd0.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libtoml-2
bbcb6d8279a53f2.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libhome-e6b11c1f2b33bb73.rlib" "/priv
ate/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libclap-c3d9f7f22fa05e70.rlib" "/private/tmp/nix-build-cargo-abou
t-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libclap_builder-e752b82ece3d810d.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source
/target/aarch64-apple-darwin/release/deps/libstrsim-5e0ab3b29bb0f0f8.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darw
in/release/deps/libanstream-d84804a8e448cf11.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libansty
le_query-d6b4d380214dd4e2.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libcolorchoice-594c456218e5
3a8b.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libanstyle_parse-f3551a57d4bcbd69.rlib" "/privat
e/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libutf8parse-f4cc96e20bc984e8.rlib" "/private/tmp/nix-build-cargo-a
bout-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libclap_lex-9326657d13889248.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/
target/aarch64-apple-darwin/release/deps/libanstyle-baed85eede96bd6f.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darw
in/release/deps/libnu_ansi_term-c93a0a4a90411798.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libh
andlebars-95c74e591a4774d2.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libpest-25d6e1df020f591b.r
lib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libucd_trie-232d1959fbc76263.rlib" "/private/tmp/nix-b
uild-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libcargo_about-eba85307e89b69e6.rlib" "/private/tmp/nix-build-cargo-about-0.6.
0.drv-1/source/target/aarch64-apple-darwin/release/deps/libcd-e3f16aa1feb02ce1.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-
apple-darwin/release/deps/libignore-159c43cbb6fd6351.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/
libwalkdir-66a44fd6a0d440e7.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libsame_file-9170a61c1466
cc52.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libglobset-0f884a7b681acf34.rlib" "/private/tmp/
nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libbstr-4fc6566c7812db08.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.
drv-1/source/target/aarch64-apple-darwin/release/deps/libaskalono-a231bde7920460c8.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarc
h64-apple-darwin/release/deps/libzstd-8b0fd8b26c67244b.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/dep
s/libzstd_safe-fee8a74f3d099897.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libzstd_sys-93bd80e73
9631329.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/librmp_serde-887f1215a1bac0bb.rlib" "/private
/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/librmp-6fb896b1b32ae691.rlib" "/private/tmp/nix-build-cargo-about-0.
6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libbyteorder-6e48fd5d65b5b3be.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target
/aarch64-apple-darwin/release/deps/libnum_traits-55281157cbc0bafc.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/
release/deps/libregex-9f2f2f272ca344f9.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libregex_autom
ata-1238df0523c8e7b4.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libaho_corasick-1e812658e91289c5
.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libregex_syntax-278e9b00b67725cd.rlib" "/private/tmp
/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/liblazy_static-5d4ab7ea0996e0a7.rlib" "/private/tmp/nix-build-cargo-abou
t-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libtoml_edit-23e86a7a5301d78e.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/ta
rget/aarch64-apple-darwin/release/deps/libserde_spanned-ed98d5369d5ab6a3.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-
darwin/release/deps/libwinnow-7fb38c5e6c68f21e.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libtom
l_datetime-ed6752979d071336.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libcodespan-64d83556686a2
a74.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libtwox_hash-7ba411a5aa64d17e.rlib" "/private/tmp
/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/librand-9a4eab84be3d7eac.rlib" "/private/tmp/nix-build-cargo-about-0.6.0
.drv-1/source/target/aarch64-apple-darwin/release/deps/librand_chacha-8277770196542403.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/
aarch64-apple-darwin/release/deps/libppv_lite86-3fa44d47fe1b7105.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/r
elease/deps/librand_core-54dba4db392bc610.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libstatic_a
ssertions-c57d478830777d72.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libparking_lot-f3d4de32bb
06acf.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libparking_lot_core-12e8ff129a749ac2.rlib" "/p
ivate/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/liblock_api-55c68953df013f62.rlib" "/private/tmp/nix-build-car
o-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/librayon-260211d57a889756.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source
target/aarch64-apple-darwin/release/deps/librayon_core-7ff7fdf5751a7fb0.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-
arwin/release/deps/libcrossbeam_deque-dae3d01e1ce77a63.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/de
s/libcrossbeam_epoch-0db0669e2dded244.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libmemoffset-0
4b96f7a735a802.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libscopeguard-4bd0a17c193bbfef.rlib" 
/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libcrossbeam_utils-8adfdcb3800b9d8c.rlib" "/private/tmp/nix
build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libeither-09c8b76deb4eb3fc.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.d
v-1/source/target/aarch64-apple-darwin/release/deps/libcodespan_reporting-f964ca602c4a605d.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/ta
get/aarch64-apple-darwin/release/deps/libunicode_width-b554887cbed2f01a.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-
arwin/release/deps/libtermcolor-6a2423b1815aaae5.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/lib
eqwest-4c14ad806aa5ddb1.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/librustls_pemfile-b8ea7d45cf
30d4a.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libhyper_rustls-1b5ec7cc0c5f70b1.rlib" "/priva
e/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libwebpki_roots-de3ddbbb09ba894d.rlib" "/private/tmp/nix-build-car
o-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libbase64-18456a13a40715b0.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/sourc
/target/aarch64-apple-darwin/release/deps/libsystem_configuration-794bafda9862318f.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aar
h64-apple-darwin/release/deps/libbitflags-874464458fa759ee.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/releas
/deps/libsystem_configuration_sys-5218f0a0fed251de.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/l
bcore_foundation-e4b311f02d80733b.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libcore_foundation
sys-a03adf92f53a8f05.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libipnet-d5c997f28351f846.rlib"
"/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libtokio_rustls-089c9f34075ba91c.rlib" "/private/tmp/nix-b
ild-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libserde_urlencoded-88e68441e1d6d088.rlib" "/private/tmp/nix-build-cargo-about
0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libmime-c11fe731e01a1d1a.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/a
rch64-apple-darwin/release/deps/libencoding_rs-aa604af654a8c563.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/r
lease/deps/librustls-5327430c2e4bb84e.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libsct-a5e5967
90a8eb2d.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libwebpki-a2e2544a9ca37680.rlib" "/private/
mp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libring-121efa0be6226e59.rlib" "/private/tmp/nix-build-cargo-about-0.
.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libgetrandom-c2f3a17d6adb18c6.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target
aarch64-apple-darwin/release/deps/libcfg_if-425cb196a193a416.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/rele
se/deps/libspin-5e03b78bfef5915c.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libuntrusted-175954
6ad4e787e.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libhyper-3d704e283b89f869.rlib" "/private/
mp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libwant-bf21da40419081a6.rlib" "/private/tmp/nix-build-cargo-about-0.
.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libtry_lock-7c8908bb62e99bba.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/
arch64-apple-darwin/release/deps/libsocket2-d6ad8aaeedb54f07.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/rele
se/deps/libhttparse-a9f174242cef4139.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libh2-c8a54fced
df796b.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libtokio_util-025aa66738ea8aa6.rlib" "/privat
/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libfutures_sink-a44f2159f57e9882.rlib" "/private/tmp/nix-build-carg
-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libtower_service-d98050927ac21d67.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1
source/target/aarch64-apple-darwin/release/deps/libtracing-ce39dbc6acf6ffcf.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-ap
le-darwin/release/deps/libtracing_core-866de5e695252862.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/d
ps/libonce_cell-d4ebb6209fcf1d03.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libfutures_channel-
652cd3acd957699.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libtokio-025100a20d7487c7.rlib" "/pr
vate/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libnum_cpus-52f1f050fc14ce5d.rlib" "/private/tmp/nix-build-carg
-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libsocket2-4ef1efa1eb79ccbc.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/sourc
/target/aarch64-apple-darwin/release/deps/libmio-32788cd57cf30228.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin
release/deps/liblibc-5d1370ea1fe74225.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libhttp_body-e
2dbab956b7b996.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/liblog-b27ad00d3c51da17.rlib" "/priva
e/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libfutures_util-4ff6cfcf48e88bc8.rlib" "/private/tmp/nix-build-car
o-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libmemchr-45f68f5c737697eb.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/sourc
/target/aarch64-apple-darwin/release/deps/libfutures_io-09ec5691a69c17f3.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple
darwin/release/deps/libslab-1895446447562b97.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libpin_
roject_lite-b332401254b20eb8.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libfutures_task-657792a
c9f5cec4.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libpin_utils-e63278e387ec30f0.rlib" "/priva
e/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libfutures_core-722a178d2bfac5a2.rlib" "/private/tmp/nix-build-car
o-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/liburl-8ba0cc793b34f550.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/t
rget/aarch64-apple-darwin/release/deps/libidna-c6a5e341a28d35e3.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/r
lease/deps/libunicode_normalization-489be7e0bf9b3c7f.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps
libtinyvec-6249c10ba4b06dba.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libtinyvec_macros-81589b
a39d59fa6.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libunicode_bidi-909c7528673bbbd3.rlib" "/p
ivate/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libform_urlencoded-90c4cdcff8a566c6.rlib" "/private/tmp/nix-bu
ld-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libpercent_encoding-64689cc7c57e56d4.rlib" "/private/tmp/nix-build-cargo-about-
.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libhttp-35438b2af87fe86a.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aa
ch64-apple-darwin/release/deps/libbytes-a502214b0ffbf22d.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/
eps/libfnv-cd0f88d65d6b2886.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libspdx-b3ce3afe4399534b
rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libkrates-37386e931402874a.rlib" "/private/tmp/nix-b
ild-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libpetgraph-cd5f1de804fdc88c.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.d
v-1/source/target/aarch64-apple-darwin/release/deps/libindexmap-cd6afdf68555312b.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch
4-apple-darwin/release/deps/libequivalent-e30e8cb82390145f.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/releas
/deps/libhashbrown-6db82c68b4a0f91c.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libfixedbitset-6
eb25600811f876.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libcfg_expr-58a5629c2c22cc82.rlib" "/
rivate/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libsmallvec-135fc85047490ae1.rlib" "/private/tmp/nix-build-ca
go-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libcargo_metadata-abe4fe5e12d4dd9b.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.dr
-1/source/target/aarch64-apple-darwin/release/deps/libserde_json-8d47e4e3ddc7b10c.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarc
64-apple-darwin/release/deps/libryu-8451065b628d9764.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps
libitoa-c637a95c95c92185.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libthiserror-a80ce869a8b79f
a.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libcargo_platform-1e46ec24dfd13f25.rlib" "/private
tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libsemver-6a51d040388d0425.rlib" "/private/tmp/nix-build-cargo-about
0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/libcamino-49b0dd3867356620.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target
aarch64-apple-darwin/release/deps/libserde-b7591c7b895b244c.rlib" "/private/tmp/nix-build-cargo-about-0.6.0.drv-1/source/target/aarch64-apple-darwin/relea
e/deps/libanyhow-38806bcd2bd7f061.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib/libstd-03c53b54a0b1
97d.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-32c6908016812ada.rlib" "/nix/stor
/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib/libobject-d8028f9d6e099c46.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5
cmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-b44bd6fb2b1b839e.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/ru
tlib/aarch64-apple-darwin/lib/libaddr2line-c8dcf438cf6d13da.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darw
n/lib/libgimli-703d937e20906b80.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-b7a
46c30207e45c.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-4d8dae81211e4895.rlib" "/n
x/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-d204bf1a3582275b.rlib" "/nix/store/y24qqyfbnnxza58
1hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-e447863e017a3c6b.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnd
5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-ac4d1414355d5dc4.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0
lib/rustlib/aarch64-apple-darwin/lib/libadler-6cc53510bafd9383.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-d
rwin/lib/libunwind-cc9a97bec3aa68fb.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-1b9937e
f2e43f1a.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib/liblibc-b935d087394ceac5.rlib" "/nix/store/y
4qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib/liballoc-d062ef7598770b49.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmz
mq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-e068a539d3cd8c41.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc
1.74.0/lib/rustlib/aarch64-apple-darwin/lib/libcore-c654b0e49d6357d6.rlib" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-a
ple-darwin/lib/libcompiler_builtins-738eb43ff73087cd.rlib" "-lzstd" "-framework" "SystemConfiguration" "-framework" "CoreFoundation" "-liconv" "-lSystem" 
-lc" "-lm" "-L" "/nix/store/y24qqyfbnnxza5841hd9hnda5icmzymq-rustc-1.74.0/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/private/tmp/nix-build-cargo-about-0
6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/cargo_about-48623f6db9738e2e" "-Wl,-dead_strip" "-nodefaultlibs" "/private/tmp/nix-build-cargo-a
out-0.6.0.drv-1/source/target/aarch64-apple-darwin/release/deps/cargo_about_audit_data.o" "-Wl,-u,_AUDITABLE_VERSION_INFO"
       >   = note: ld: framework not found SystemConfiguration
       >           clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
       >           
       >
       > error: could not compile `cargo-about` (bin "cargo-about") due to previous error
       For full logs, run 'nix log /nix/store/8fi3cmddl5cd15vaxg80dcdvgikj0svj-cargo-about-0.6.0.drv'.
error: 1 dependencies of derivation '/nix/store/kv73541d5z2sd8khhzl4j53a4lrgn4zy-shell-env.drv' failed to build

env info

System:
OS: macOS 15.0
CPU: (11) arm64 Apple M3 Pro
Memory: 361.95 MB / 36.00 GB
Shell: 3.7.1 - /opt/homebrew/bin/fish

Related Issue

I guess serokell/deploy-rs#132
I'll contiribute it later if I have time.
Thanks

@ryoppippi ryoppippi closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2024
@ryoppippi ryoppippi reopened this Sep 24, 2024
@ryoppippi
Copy link
Contributor Author

Hmm, I cannot solve this...

diff --git a/flake.nix b/flake.nix
index dccdd6c..2b4600f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -17,7 +17,7 @@
           openssl
           dbus
           sqlite
-        ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
+        ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security SystemConfiguration ]);
 
 
         package = with pkgs; rustPlatform.buildRustPackage rec {

this does not work

@ryoppippi
Copy link
Contributor Author

I could compile it by nix build
Thanks...!

@ryoppippi
Copy link
Contributor Author

I got an error today, so I'll contribute it

@ryoppippi
Copy link
Contributor Author

So Actually

This works!

{
  description = "hecto-study development environment";
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
    flake-parts.url = "github:hercules-ci/flake-parts";
  };
  outputs =
    { flake-parts, ... }@inputs:
    flake-parts.lib.mkFlake { inherit inputs; } {
      systems = [
        "x86_64-linux"
        "aarch64-linux"
        "x86_64-darwin"
        "aarch64-darwin"
      ];
      perSystem =
        {
          pkgs,
          ...
        }:
        {
          devShells.default = pkgs.mkShell {
            packages = with pkgs; [
              rustc
              cargo
              rustfmt
              clippy
              rust-analyzer
              cargo-watch
              (leetcode-cli.overrideAttrs (prev: {
                buildInputs =
                  prev.buildInputs
                  ++ pkgs.lib.optionals pkgs.stdenv.isDarwin (
                    with pkgs.darwin.apple_sdk.frameworks;
                    [
                      SystemConfiguration
                    ]
                  );
              }))
            ];
          };
        };
    };
}

But this doesn't

{
  description = "hecto-study development environment";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
    flake-parts.url = "github:hercules-ci/flake-parts";
  };

  outputs =
    { flake-parts, ... }@inputs:
    flake-parts.lib.mkFlake { inherit inputs; } {
      systems = [
        "x86_64-linux"
        "aarch64-linux"
        "x86_64-darwin"
        "aarch64-darwin"
      ];

      perSystem =
        {
        pkgs,
        ...
        }:
        {
          devShells.default = pkgs.mkShell {
            packages = (with pkgs; [
              rustc
              cargo
              rustfmt
              clippy
              rust-analyzer
              cargo-watch
              leetcode-cli
            ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security SystemConfiguration ]));
          };
        };
    };
}

@ryoppippi
Copy link
Contributor Author

So, we don't need SystemConfiguration for v0.4.3 but v0.4.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant