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

cargo-download: init at 0.1.1 #44978

Merged
merged 2 commits into from Sep 4, 2018
Merged

cargo-download: init at 0.1.1 #44978

merged 2 commits into from Sep 4, 2018

Conversation

alyssais
Copy link
Member

@alyssais alyssais commented Aug 13, 2018

Cargo.nix was generated from cargo-download 0.1.1 with this patch applied, which was necessary to not confuse carnix about the version being different between Cargo.toml and Cargo.lock.

See Xion/cargo-download#3.

diff --git a/Cargo.lock b/Cargo.lock
index cc7357c..c384dc1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -76,7 +76,7 @@ dependencies = [

 [[package]]
 name = "cargo-download"
-version = "0.1.0"
+version = "0.1.1"
 dependencies = [
  "ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "clap 2.27.1 (registry+https://github.com/rust-lang/crates.io-index)",
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

Cargo.nix was generated from cargo-download 0.1.1 with this patch
applied, which was necessary to not confuse carnix about the version
being different between Cargo.toml and Cargo.lock.

See Xion/cargo-download#3.

From 5efd4cf11ff9d5042712303404169016b1e05c33 Mon Sep 17 00:00:00 2001
From: Alyssa Ross <hi@alyssa.is>
Date: Thu, 26 Jul 2018 21:19:06 +0200
Subject: [PATCH] Fix Cargo.lock

Running `cargo build` on a clean checkout produces a diff in Cargo.lock,
because it wasn't updated after the version number was bumped.

After this commit, `cargo build` should no longer produce a modified
working tree.
---
 Cargo.lock | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Cargo.lock b/Cargo.lock
index cc7357c..c384dc1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -76,7 +76,7 @@ dependencies = [

 [[package]]
 name = "cargo-download"
-version = "0.1.0"
+version = "0.1.1"
 dependencies = [
  "ansi_term 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
  "clap 2.27.1 (registry+https://github.com/rust-lang/crates.io-index)",
--
2.17.1

((import ./Cargo.nix { inherit lib buildPlatform buildRustCrate fetchgit; }).cargo_download {}).override {

}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the empty override?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, I see that's what the examples in the manual are structured like...

@xeji
Copy link
Contributor

xeji commented Sep 2, 2018

@GrahamcOfBorg build cargo-download

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: cargo-download

Partial log (click to expand)


installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1
shrinking /nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1/bin/cargo-download
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1/lib  /nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1/bin
patching script interpreter paths in /nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1
checking for references to /build in /nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1...
/nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: cargo-download

Partial log (click to expand)


installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1
shrinking /nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1/bin/cargo-download
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1/lib  /nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1/bin
patching script interpreter paths in /nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1
checking for references to /build in /nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1...
/nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: cargo-download

Partial log (click to expand)

  |
  = note: "/nix/store/2gdwhdzhy4iwkp7fh8v6gy6nxj1zi9pv-clang-wrapper-5.0.2/bin/cc" "-m64" "-L" "/nix/store/l7gj247ng15w7hpnya0ha9mrcmaa125f-rustc-1.27.0/lib/rustlib/x86_64-apple-darwin/lib" "target/bin/cargo_download.cargo_download0.rcgu.o" "-o" "target/bin/cargo_download" "target/bin/cargo_download.crate.allocator.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "target/deps" "-L" "/nix/store/zizmwrdgq1qplr7yqynwi1j71b649anq-rust_miniz-sys-0.1.10/lib/miniz-sys.out" "-L" "/nix/store/zizmwrdgq1qplr7yqynwi1j71b649anq-rust_miniz-sys-0.1.10/lib/miniz-sys.out" "-L" "/nix/store/l7gj247ng15w7hpnya0ha9mrcmaa125f-rustc-1.27.0/lib/rustlib/x86_64-apple-darwin/lib" "-framework" "CoreFoundation" "-framework" "Security" "-Wl,-force_load,/nix/store/zizmwrdgq1qplr7yqynwi1j71b649anq-rust_miniz-sys-0.1.10/lib/miniz-sys.out/libminiz.a" "/nix/store/mbw411f42kksz7cj0hpwh2lm07l2qlqp-rust_tar-0.4.16/lib/libtar-98b766acc5.rlib" "/nix/store/w0017arpxv5s1g2ih3axf5sii43adsh8-rust_xattr-0.2.2/lib/libxattr-f4865fa0e9.rlib" "/nix/store/482wqw7chh9qd3fwyyad9zvfy15nc263-rust_filetime-0.2.1/lib/libfiletime-1df3ffc74e.rlib" "/nix/store/34sbfknkb2zanhhzrqmr9i4skmqm83yl-rust_slog-envlogger-0.5.0/lib/libslog_envlogger-0764403d63.rlib" "/nix/store/l7hkb9y3f4h7si55gh69frac120g0d56-rust_slog-stdlog-1.1.0/lib/libslog_stdlog-38c94023a3.rlib" "/nix/store/1bpraggkc78rl02qrafc4rl3blb26a2f-rust_crossbeam-0.2.12/lib/libcrossbeam-d3fbe5f71f.rlib" "/nix/store/9p3blqc1angplpgd8qqxnb88kalhskvw-rust_slog-term-1.5.0/lib/libslog_term-aedc3d143f.rlib" "/nix/store/sy5f0l4lnlzmk0ysb8682pbzqz3qsl7m-rust_chrono-0.2.25/lib/libchrono-ad87afaed8.rlib" "/nix/store/qpymvp3mx4g3graq5g74ick5sg4fzy0q-rust_num-0.1.42/lib/libnum-6c8a0627e4.rlib" "/nix/store/ab7962m6f3n0j29laslzhxnbhbacn7za-rust_num-iter-0.1.37/lib/libnum_iter-0860bd6e4a.rlib" "/nix/store/y56s0mafb3m8s9li710qk4bqgdgxgs80-rust_num-integer-0.1.39/lib/libnum_integer-5617daa563.rlib" "/nix/store/b2zzclv02ih7csmmfynh2fx5m9012x19-rust_num-traits-0.2.5/lib/libnum_traits-53da54a80b.rlib" "/nix/store/mcpdzj0j6mcqp84n6dcs3yn3y21bdpv6-rust_slog-stream-1.2.1/lib/libslog_stream-1306cf4508.rlib" "/nix/store/13l1nv0ljjpx6r14djkn8ajk22j1j8hy-rust_slog-extra-0.1.2/lib/libslog_extra-c223313ae7.rlib" "/nix/store/vmswwaf4kwk8wws41arh0zna1mc7hdq6-rust_thread_local-0.3.5/lib/libthread_local-ec9410f8fe.rlib" "/nix/store/b8j4lk2pafjxavws7jw79fmgfz9lqsq1-rust_unreachable-1.0.0/lib/libunreachable-57900dbc82.rlib" "/nix/store/3h6qdcbmg59chbfl1a3hp0fc2hiib55h-rust_void-1.0.2/lib/libvoid-f243064ce9.rlib" "/nix/store/bxl78vxyi7skpxxanklngnn5m6qkizdp-rust_slog-1.7.1/lib/libslog-ae2c60979f.rlib" "/nix/store/sbb1b2xc44qmj2agga3p0z58k413rg62-rust_regex-0.1.80/lib/libregex-96a7655a56.rlib" "/nix/store/vmpyr0mqjl13vg5yniz085h9a27j6403-rust_utf8-ranges-0.1.3/lib/libutf8_ranges-e256c8cbe9.rlib" "/nix/store/fsfkvjlxw9367x0ddc218fms1138xzqr-rust_regex-syntax-0.3.9/lib/libregex_syntax-0a01961ac9.rlib" "/nix/store/jvar0ll0azrsi7d5gci2l7lr0qbjxpcn-rust_thread_local-0.2.7/lib/libthread_local-ee9501111a.rlib" "/nix/store/snrhr5ff13lzyl973vzqg1a3iyas5fir-rust_thread-id-2.0.0/lib/libthread_id-45fa3ee439.rlib" "/nix/store/xqqz6d4m38mkv2ll9yv6v0s3777g8ps8-rust_aho-corasick-0.5.3/lib/libaho_corasick-e96340d719.rlib" "/nix/store/n3nxjjnsr4518yndqw11xxmgfcfxc4h2-rust_memchr-0.1.11/lib/libmemchr-cd4c1c12e9.rlib" "/nix/store/sk3gdmkcrzdvqiri6wm5j3vy0fv830g8-rust_semver-0.9.0/lib/libsemver-796001ebc3.rlib" "/nix/store/s0wiaasvi4hwapy5rz6fp2yy3zqws21f-rust_semver-parser-0.7.0/lib/libsemver_parser-a833eac115.rlib" "/nix/store/lmkp7wpf5kpirjk779s2y81707llsnmf-rust_reqwest-0.8.6/lib/libreqwest-c0ed5fc5b0.rlib" "/nix/store/swah1bh9f9cfvpbl3clkipnbsgmrdaz8-rust_uuid-0.6.5/lib/libuuid-2ee6f188ae.rlib" "/nix/store/j8xil7vii4z9hd5rlzj888ymgg1rmg15-rust_serde_urlencoded-0.5.2/lib/libserde_urlencoded-8294796272.rlib" "/nix/store/zf249hcda0bgbrc1mvhp82afi6yljjj1-rust_url-1.7.1/lib/liburl-7464b27ad9.rlib" "/nix/store/mq435l564nw7bsjgpynkpw964q3avp0d-rust_idna-0.1.5/lib/libidna-da9f643585.rlib" "/nix/store/wvms650zjc547dw2vbvcqn12vg3w841i-rust_unicode-normalization-0.1.7/lib/libunicode_normalization-f78322e4a6.rlib" "/nix/store/qpq6537c1jv804a5iflzdy9mhjc1zs8g-rust_unicode-bidi-0.3.4/lib/libunicode_bidi-725cb0b7cb.rlib" "/nix/store/i9a0dmdp2yzvsc3cqgn0fas4jfqb2nxk-rust_matches-0.1.7/lib/libmatches-506014cbcb.rlib" "/nix/store/ljxrsck28wpwnv7r838hhm5jzi21abaw-rust_serde_json-1.0.24/lib/libserde_json-e04edd2352.rlib" "/nix/store/1658qgzwz907q91jz09l7iraggsp8qhz-rust_itoa-0.4.2/lib/libitoa-1a4836cc83.rlib" "/nix/store/jkzyfr053pjbn1g8sk8gfr3j3xh8vz4w-rust_dtoa-0.4.3/lib/libdtoa-6586fe1de5.rlib" "/nix/store/w0f6mhlp9siaikkmm7w1xbbr4phf8h9h-rust_serde-1.0.70/lib/libserde-913185ce9b.rlib" "/nix/store/hdrplh26bmf656dd5hahh4yczq0cacby-rust_mime_guess-2.0.0-alpha.6/lib/libmime_guess-8662328c90.rlib" "/nix/store/fy35ph60byqwqxyhjhvfq0fsqimn23hk-rust_phf-0.7.22/lib/libphf-cbca97b68f.rlib" "/nix/store/430inzk4cv4hzfdxprjizli25dc954i7-rust_phf_shared-0.7.22/lib/libphf_shared-a3649f0c09.rlib" "/nix/store/2v5qxnn936xndxqjh10gkr09v8f7r8sb-rust_unicase-1.4.2/lib/libunicase-53f8af4767.rlib" "/nix/store/67anw0asmccldnls7ihplaiz567z89zh-rust_siphasher-0.2.2/lib/libsiphasher-57d8dbada9.rlib" "/nix/store/zv528393cld1wcv6acxyn94z06ladv6x-rust_libflate-0.1.16/lib/liblibflate-7de0de5852.rlib" "/nix/store/h3n42i8d9y5ckaq11aq4a12lziwzr3nw-rust_crc-1.8.1/lib/libcrc-a808116a2b.rlib" "/nix/store/ynjhbcdcwjqr6z4man8vxhq8gjz52hfg-rust_adler32-1.0.3/lib/libadler32-09fc0f1a62.rlib" "/nix/store/0a7h1yx5y42mm8nfb39v13g0ii6zvcf6-rust_hyper-tls-0.1.3/lib/libhyper_tls-63b8d820f9.rlib" "/nix/store/dgmh3qgl8m4g4wkf1gwnf5a2jax0jkxc-rust_tokio-tls-0.1.4/lib/libtokio_tls-cd61afd518.rlib" "/nix/store/94ww2rfs4mcsa2l7zwxk8m4zp47wwcs0-rust_native-tls-0.1.5/lib/libnative_tls-b199c0d925.rlib" "/nix/store/3vjq1h5jgl4z8j3fqnj1n9sx18y0mpdc-rust_tempdir-0.3.7/lib/libtempdir-f16e7c511b.rlib" "/nix/store/qcgxb1b4iazwzgfjfjb4814k0h72y3nz-rust_remove_dir_all-0.5.1/lib/libremove_dir_all-684f052481.rlib" "/nix/store/mprx5ks5l2y8jz0q5ypdjiqgxl9vx3ff-rust_security-framework-0.1.16/lib/libsecurity_framework-6f0eded5ad.rlib" "/nix/store/r2hnj1c01yh9imp62vzhwcjm1nh5idwf-rust_core-foundation-0.2.3/lib/libcore_foundation-3db48c19ef.rlib" "/nix/store/yh2cf1q5zc52d8jz940kav4c8kl30rxs-rust_security-framework-sys-0.1.16/lib/libsecurity_framework_sys-efeaedeefd.rlib" "/nix/store/zdvym985pwqxx88wskhvpa4rzk35d4jm-rust_core-foundation-sys-0.2.3/lib/libcore_foundation_sys-37d9e870fc.rlib" "/nix/store/zk6mfd78xss0jryrfaxnmkz8l2dq9hp6-rust_hyper-0.11.27/lib/libhyper-d2ad07ca50.rlib" "/nix/store/rsgb8lmaabbvnz8s18k63nivrqq5hqbv-rust_want-0.0.4/lib/libwant-0dfedf4848.rlib" "/nix/store/dlvgzsx1443prcapia2pbp22i3v79049-rust_try-lock-0.1.0/lib/libtry_lock-f4ad93dbc3.rlib" "/nix/store/n5sbmvzngsbp8gaprb158hnkznp38fsd-rust_tokio-proto-0.1.1/lib/libtokio_proto-c1248c2909.rlib" "/nix/store/vadjpyqhxqg9xn7w1c2bg22d7h3a8jcm-rust_log-0.3.9/lib/liblog-4578398e6a.rlib" "/nix/store/dgkfz4v2y07x08vp5mkgqxdfwrqkwfbb-rust_tokio-service-0.1.0/lib/libtokio_service-f4fc9ab390.rlib" "/nix/store/66h8j7y3myxkx63lbcfhzfm97yfn4y1f-rust_take-0.1.0/lib/libtake-43a9abd2c1.rlib" "/nix/store/20lvxji1x7jcvpivcd69jdv2jk9fwmh1-rust_smallvec-0.2.1/lib/libsmallvec-fd4ac10da9.rlib" "/nix/store/ycl1fv7s941rwzkc7a53i0b4ajkl6ws6-rust_slab-0.3.0/lib/libslab-aea628af9f.rlib" "/nix/store/vxnh9w8d5fz7q941av9pirc5gz6yqcy6-rust_rand-0.3.22/lib/librand-feae5be25a.rlib" "/nix/store/8l45pf0v2i4s4fzwpza892b38r1s8jy3-rust_tokio-core-0.1.17/lib/libtokio_core-adc2750942.rlib" "/nix/store/h281l8s9j7n7m07ng44lh6sv243nhqw4-rust_scoped-tls-0.1.2/lib/libscoped_tls-657763b165.rlib" "/nix/store/181r7lv1g36zhpw6n3sql37xlx8rbkn2-rust_tokio-0.1.7/lib/libtokio-c79b89be81.rlib" "/nix/store/rqgcmrb2d757825hi59n033y8snc7gdl-rust_tokio-udp-0.1.1/lib/libtokio_udp-0a3f190c6b.rlib" "/nix/store/snb6j4iw9snsv9br1qwhi1d1z5rv21x4-rust_tokio-codec-0.1.0/lib/libtokio_codec-4eb9232606.rlib" "/nix/store/jbhigbf800f4mzdr6hhgjxsx1dvbh3aq-rust_tokio-tcp-0.1.0/lib/libtokio_tcp-44f687fb4b.rlib" "/nix/store/dnsw85j0mdn8rwhi614l2svnaa5ksd6g-rust_tokio-timer-0.2.4/lib/libtokio_timer-d324d93fd4.rlib" "/nix/store/rwl9pkbccbkqyysdb82qfigzj9fh07q5-rust_tokio-reactor-0.1.2/lib/libtokio_reactor-925f8b99ff.rlib" "/nix/store/2y4fw2fxysqgxzbsrgwwa25j65hb1jl2-rust_tokio-fs-0.1.2/lib/libtokio_fs-c2266a6cf9.rlib" "/nix/store/7bq64i8g0a4yjlib79cfmfwh4vq8wswl-rust_tokio-threadpool-0.1.5/lib/libtokio_threadpool-9d8cc1008b.rlib" "/nix/store/g49fxci2h0y86ribsgrpxv3nhlzfjdnq-rust_rand-0.4.2/lib/librand-bb3384f48b.rlib" "/nix/store/qm8s8i1iyjwip4yhzzbx0gyw9527r5pi-rust_crossbeam-deque-0.3.1/lib/libcrossbeam_deque-3d3bac103b.rlib" "/nix/store/dw492f27r2f6bh5n8mn56b7nfbd5r4xj-rust_crossbeam-epoch-0.4.3/lib/libcrossbeam_epoch-40cd1928d9.rlib" "/nix/store/h5b11g5z9bwjac498mmk0srwxs2b0ryq-rust_scopeguard-0.3.3/lib/libscopeguard-f76c87424b.rlib" "/nix/store/yyvmshc3wsq81f281gfj0aqb0gv6paf9-rust_memoffset-0.2.1/lib/libmemoffset-6d43422acb.rlib" "/nix/store/95sgm16fzfxn97hvn4fvpqi98k11938y-rust_lazy_static-1.0.2/lib/liblazy_static-85abab1478.rlib" "/nix/store/dcl7jsmrysg3zrmm3c3qxnjqjpda20ma-rust_crossbeam-utils-0.3.2/lib/libcrossbeam_utils-db106956de.rlib" "/nix/store/fhs411iis9dvvbgmy4n8sdxria49g668-rust_arrayvec-0.4.7/lib/libarrayvec-104a34123b.rlib" "/nix/store/nis7wp620k02vv7sqc4c73vi5jmphbd4-rust_nodrop-0.1.12/lib/libnodrop-ce7be809b8.rlib" "/nix/store/9b4i2ri7rjmsi43zn5f8w5xqjdb3yrwy-rust_tokio-executor-0.1.2/lib/libtokio_executor-33dea632bd.rlib" "/nix/store/hqy43wan2ybar9sd2vas8psxaqm0dcfh-rust_tokio-io-0.1.7/lib/libtokio_io-131455431a.rlib" "/nix/store/q8j5s593wp3adfmf55zfcs79frdmkwg7-rust_mio-0.6.15/lib/libmio-75247130e6.rlib" "/nix/store/8xifhm94mpm9arlzq3yjfxqakhbc3v10-rust_slab-0.4.0/lib/libslab-f461f1e291.rlib" "/nix/store/4rg172lb2qha8mss6914npsmzq8jdhgx-rust_lazycell-0.6.0/lib/liblazycell-01e10e6593.rlib" "/nix/store/c3m9z9agxb0a6rp5iijx8r10c15c6fc7-rust_time-0.1.40/lib/libtime-fed4edec4f.rlib" "/nix/store/lvzqrvaphxz7x7xis8l7sbgnwmipmblg-rust_relay-0.1.1/lib/librelay-c3026f728e.rlib" "/nix/store/k3i7f4jgan75b9x559w31rwwbvab91ib-rust_percent-encoding-1.0.1/lib/libpercent_encoding-a28ed4e917.rlib" "/nix/store/lkzpm8b7sf3pkjasnm9yf86rcg029730-rust_net2-0.2.33/lib/libnet2-20d432cb25.rlib" "/nix/store/ss6awkinfb0nbf6salrnndrxvmv78rar-rust_mime-0.3.8/lib/libmime-6500429bae.rlib" "/nix/store/dbi1iiq2zhad94j945g5ncslkxclbvi8-rust_unicase-2.1.0/lib/libunicase-7658225e50.rlib" "/nix/store/zfwfg05s16wwmr56kv3nc10q5zhb5bqj-rust_log-0.4.3/lib/liblog-bf6cfc8a90.rlib" "/nix/store/91xsnnqp6fkviyqbyivsx8hvsnjldj5p-rust_language-tags-0.2.2/lib/liblanguage_tags-1a45ccdd01.rlib" "/nix/store/32vd337l7czcv03f25k612kabbcq3hin-rust_httparse-1.3.2/lib/libhttparse-5007fe3726.rlib" "/nix/store/9z6hw5fmk90rdpdn2vvhxz46sd7n5ccq-rust_futures-cpupool-0.1.8/lib/libfutures_cpupool-6ccb0aee12.rlib" "/nix/store/5470jrd7gwdxkhz95rp7armnm4d2q92a-rust_num_cpus-1.8.0/lib/libnum_cpus-6bb89b3d15.rlib" "/nix/store/fps4sw813naw2ld3jaz8x4zzlknfnpyk-rust_base64-0.9.2/lib/libbase64-19cb64d982.rlib" "/nix/store/h3px66xmdvbzddr97n5hsb3vd97b4hgb-rust_safemem-0.2.0/lib/libsafemem-7e73cb6443.rlib" "/nix/store/v68kmdc1vl132kvm3jrc6307m8flr3qn-rust_futures-0.1.23/lib/libfutures-3e079dcff1.rlib" "/nix/store/l9v1d4hgl6d8himvz1pdm29nh74wpsx9-rust_encoding_rs-0.7.2/lib/libencoding_rs-db96c44e9b.rlib" "/nix/store/zck1vk3i1ydx1a4cyx5sbgws4xlp7d6m-rust_cfg-if-0.1.4/lib/libcfg_if-033990b023.rlib" "/nix/store/x1dadsgc8rj359h90bg3fj56zs41f7bz-rust_bytes-0.4.9/lib/libbytes-0bc948e53a.rlib" "/nix/store/197mi0gl6lj4arcsz6jmyhxz1l5nvyk1-rust_iovec-0.1.2/lib/libiovec-fed9a386a0.rlib" "/nix/store/qmb88bxb5fxl66f7sqyyd7z90kwv3r4y-rust_byteorder-1.2.3/lib/libbyteorder-3394c46e90.rlib" "/nix/store/ks36dgl3smpmw4s58fx3qbr4qz5sz3gr-rust_maplit-0.1.6/lib/libmaplit-c2c4a9db69.rlib" "/nix/store/gqfg45f4c5b1dkgi9b15pm01rnpxpmmq-rust_lazy_static-0.2.11/lib/liblazy_static-b161637761.rlib" "/nix/store/0m20pbg7lz0di9jflgxb568x5p7lcbdh-rust_isatty-0.1.8/lib/libisatty-246a278aea.rlib" "/nix/store/1cq2n9vxqz01j9xslgq9srbd8mvnv9nh-rust_flate2-0.2.20/lib/libflate2-d93e97d6f5.rlib" "/nix/store/zizmwrdgq1qplr7yqynwi1j71b649anq-rust_miniz-sys-0.1.10/lib/libminiz_sys-fe43c402c3.rlib" "/nix/store/hivcxf931g0a7inbyya6wmrrcfbp1gwa-rust_exitcode-1.1.2/lib/libexitcode-97efdf7751.rlib" "/nix/store/mlwnjd6m4zd1s2p92n0mcgxvpapjfs6g-rust_conv-0.3.3/lib/libconv-68a4c7cbd4.rlib" "/nix/store/gyb1l56mq8zcy0nj3cz0j302gbj1bp1q-rust_custom_derive-0.1.7/lib/libcustom_derive-dd58355b62.rlib" "/nix/store/6bviw2cjdg1bdcmzif6x9rir8kn3vj5q-rust_clap-2.32.0/lib/libclap-16cc62ea49.rlib" "/nix/store/jwsx9x2b5fraxcpm8ykb75lxy6jldg3p-rust_vec_map-0.8.1/lib/libvec_map-20faf5a476.rlib" "/nix/store/69vp1hvhhpq34ggkx7d1qb1g1z5fyxai-rust_textwrap-0.10.0/lib/libtextwrap-cabf0dc316.rlib" "/nix/store/j3svjdy0fvzylbl0abyjnyfqxq844kip-rust_unicode-width-0.1.5/lib/libunicode_width-f44a9c7566.rlib" "/nix/store/wng2pq5939jjzhnvqv6hnk87yrn9pn13-rust_strsim-0.7.0/lib/libstrsim-393d28cce2.rlib" "/nix/store/fwczl7b075aqshfbvsbksy96fmq2pww4-rust_bitflags-1.0.3/lib/libbitflags-afa45b3d15.rlib" "/nix/store/vy0s1kr8h8p8sysj6v6c5xrzrjbz4ybm-rust_atty-0.2.11/lib/libatty-cbb4b593f8.rlib" "/nix/store/8kqp7k6yl51kmafv8s25pgl9i7w1zqdk-rust_libc-0.2.42/lib/liblibc-2446c939d6.rlib" "/nix/store/1nyl3yabs4hqhgl09chnm8p55ffsiciz-rust_ansi_term-0.11.0/lib/libansi_term-d76e0a7053.rlib" "/nix/store/r8h6i8db2wi0ndz760cy43xdfmpnmwzy-rust_ansi_term-0.9.0/lib/libansi_term-3b418bf8e2.rlib" "/nix/store/l7gj247ng15w7hpnya0ha9mrcmaa125f-rustc-1.27.0/lib/rustlib/x86_64-apple-darwin/lib/libstd-fecd5adb74a93ebf.rlib" "/nix/store/l7gj247ng15w7hpnya0ha9mrcmaa125f-rustc-1.27.0/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-965da75eab2650a2.rlib" "/nix/store/l7gj247ng15w7hpnya0ha9mrcmaa125f-rustc-1.27.0/lib/rustlib/x86_64-apple-darwin/lib/liballoc_jemalloc-56497464484b5a48.rlib" "/nix/store/l7gj247ng15w7hpnya0ha9mrcmaa125f-rustc-1.27.0/lib/rustlib/x86_64-apple-darwin/lib/libunwind-b423cf2bfed56b09.rlib" "/nix/store/l7gj247ng15w7hpnya0ha9mrcmaa125f-rustc-1.27.0/lib/rustlib/x86_64-apple-darwin/lib/liballoc_system-7b57f95be3b4d6ee.rlib" "/nix/store/l7gj247ng15w7hpnya0ha9mrcmaa125f-rustc-1.27.0/lib/rustlib/x86_64-apple-darwin/lib/liblibc-78f0276a5e29a88d.rlib" "/nix/store/l7gj247ng15w7hpnya0ha9mrcmaa125f-rustc-1.27.0/lib/rustlib/x86_64-apple-darwin/lib/liballoc-c4ee2f7961796856.rlib" "/nix/store/l7gj247ng15w7hpnya0ha9mrcmaa125f-rustc-1.27.0/lib/rustlib/x86_64-apple-darwin/lib/libcore-d6fce06e1bd3d804.rlib" "/nix/store/l7gj247ng15w7hpnya0ha9mrcmaa125f-rustc-1.27.0/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-0ad09ca2aab51df0.rlib" "-framework" "CoreFoundation" "-framework" "Security" "-framework" "CoreFoundation" "-framework" "Security" "-framework" "CoreFoundation" "-framework" "Security" "-framework" "CoreFoundation" "-framework" "Security" "-framework" "CoreFoundation" "-framework" "Security" "-framework" "CoreFoundation" "-framework" "CoreFoundation" "-l" "System" "-l" "resolv" "-l" "pthread" "-l" "c" "-l" "m"
  = note: ld: framework not found Security
          clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: aborting due to previous error

builder for '/nix/store/3p1hz3mrjniwn6sg1lxmcf8zf2zfkxmf-rust_cargo-download-0.1.1.drv' failed with exit code 101
error: build of '/nix/store/3p1hz3mrjniwn6sg1lxmcf8zf2zfkxmf-rust_cargo-download-0.1.1.drv' failed

@xeji
Copy link
Contributor

xeji commented Sep 2, 2018

Some missing frameworks for Darwin. Unless you have a Mac this may be a few rounds of trial-and-error with ofborg because Security depends on other frameworks etc. You can try to fix it or just limit platforms to linux. Up to you.

@alyssais
Copy link
Member Author

alyssais commented Sep 3, 2018

I have a Mac :)

@xeji
Copy link
Contributor

xeji commented Sep 4, 2018

@GrahamcOfBorg build cargo-download

((import ./Cargo.nix { inherit lib buildPlatform buildRustCrate fetchgit; }).cargo_download {}).override {
crateOverrides = defaultCrateOverrides // {
cargo-download = attrs: {
buildInputs = lib.optional stdenv.isDarwin
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that cargo-edit used a propagatedBuildInput for Security. I wasn't sure if I should be doing the same here. Should I be?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, don't know too much about how the Darwin frameworks work.
If it works for you on a Mac it should be ok.

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: cargo-download

Partial log (click to expand)


installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1
shrinking /nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1/bin/cargo-download
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1/lib  /nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1/bin
patching script interpreter paths in /nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1
checking for references to /build in /nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1...
/nix/store/d3wnj2z5yplgxncwwvyfbbchakcij89p-rust_cargo-download-0.1.1

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: cargo-download

Partial log (click to expand)


installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1
shrinking /nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1/bin/cargo-download
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1/lib  /nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1/bin
patching script interpreter paths in /nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1
checking for references to /build in /nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1...
/nix/store/ksl5b3iqh140vmbzldn1smvf2ki33glf-rust_cargo-download-0.1.1

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: cargo-download

Partial log (click to expand)

configuring
building
Building cargo_download (src/main.rs)
Running rustc --crate-name cargo_download src/main.rs --crate-type bin -C opt-level=3 -C codegen-units=1 --out-dir target/bin --emit=dep-info,link -L dependency=target/deps -L native=/nix/store/zizmwrdgq1qplr7yqynwi1j71b649anq-rust_miniz-sys-0.1.10/lib/miniz-sys.out -l framework=CoreFoundation -l framework=Security -l static=miniz --extern ansi_term=/nix/store/r8h6i8db2wi0ndz760cy43xdfmpnmwzy-rust_ansi_term-0.9.0/lib/libansi_term-3b418bf8e2.rlib --extern clap=/nix/store/6bviw2cjdg1bdcmzif6x9rir8kn3vj5q-rust_clap-2.32.0/lib/libclap-16cc62ea49.rlib --extern conv=/nix/store/mlwnjd6m4zd1s2p92n0mcgxvpapjfs6g-rust_conv-0.3.3/lib/libconv-68a4c7cbd4.rlib --extern derive_error=/nix/store/ph6p4phdih3vcvasg1g4kiaycclm1s0p-rust_derive-error-0.0.3/lib/libderive_error-e590d4d043.dylib --extern exitcode=/nix/store/hivcxf931g0a7inbyya6wmrrcfbp1gwa-rust_exitcode-1.1.2/lib/libexitcode-97efdf7751.rlib --extern flate2=/nix/store/1cq2n9vxqz01j9xslgq9srbd8mvnv9nh-rust_flate2-0.2.20/lib/libflate2-d93e97d6f5.rlib --extern isatty=/nix/store/0m20pbg7lz0di9jflgxb568x5p7lcbdh-rust_isatty-0.1.8/lib/libisatty-246a278aea.rlib --extern itertools=/nix/store/qrfy2bb9n07qsrgsz6p5vqg3zlp5g9hc-rust_itertools-0.6.5/lib/libitertools-dc1fc1b2c2.rlib --extern lazy_static=/nix/store/gqfg45f4c5b1dkgi9b15pm01rnpxpmmq-rust_lazy_static-0.2.11/lib/liblazy_static-b161637761.rlib --extern log=/nix/store/vadjpyqhxqg9xn7w1c2bg22d7h3a8jcm-rust_log-0.3.9/lib/liblog-4578398e6a.rlib --extern maplit=/nix/store/ks36dgl3smpmw4s58fx3qbr4qz5sz3gr-rust_maplit-0.1.6/lib/libmaplit-c2c4a9db69.rlib --extern reqwest=/nix/store/lmkp7wpf5kpirjk779s2y81707llsnmf-rust_reqwest-0.8.6/lib/libreqwest-c0ed5fc5b0.rlib --extern semver=/nix/store/sk3gdmkcrzdvqiri6wm5j3vy0fv830g8-rust_semver-0.9.0/lib/libsemver-796001ebc3.rlib --extern serde_json=/nix/store/ljxrsck28wpwnv7r838hhm5jzi21abaw-rust_serde_json-1.0.24/lib/libserde_json-e04edd2352.rlib --extern slog=/nix/store/bxl78vxyi7skpxxanklngnn5m6qkizdp-rust_slog-1.7.1/lib/libslog-ae2c60979f.rlib --extern slog_envlogger=/nix/store/34sbfknkb2zanhhzrqmr9i4skmqm83yl-rust_slog-envlogger-0.5.0/lib/libslog_envlogger-0764403d63.rlib --extern slog_stdlog=/nix/store/l7hkb9y3f4h7si55gh69frac120g0d56-rust_slog-stdlog-1.1.0/lib/libslog_stdlog-38c94023a3.rlib --extern slog_stream=/nix/store/mcpdzj0j6mcqp84n6dcs3yn3y21bdpv6-rust_slog-stream-1.2.1/lib/libslog_stream-1306cf4508.rlib --extern tar=/nix/store/mbw411f42kksz7cj0hpwh2lm07l2qlqp-rust_tar-0.4.16/lib/libtar-98b766acc5.rlib --extern time=/nix/store/c3m9z9agxb0a6rp5iijx8r10c15c6fc7-rust_time-0.1.40/lib/libtime-fed4edec4f.rlib --cap-lints allow -L native=/nix/store/zizmwrdgq1qplr7yqynwi1j71b649anq-rust_miniz-sys-0.1.10/lib/miniz-sys.out -l framework=CoreFoundation -l framework=Security -l static=miniz --color always
installing
post-installation fixup
strip is /nix/store/df6k4mgdjxciy0f637lryp7c9ln7n1m3-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/1wz3lxddndxa0idmrdx3b4xggpa93a5r-rust_cargo-download-0.1.1/lib  /nix/store/1wz3lxddndxa0idmrdx3b4xggpa93a5r-rust_cargo-download-0.1.1/bin
patching script interpreter paths in /nix/store/1wz3lxddndxa0idmrdx3b4xggpa93a5r-rust_cargo-download-0.1.1
/nix/store/1wz3lxddndxa0idmrdx3b4xggpa93a5r-rust_cargo-download-0.1.1

@xeji xeji merged commit 0402f04 into NixOS:master Sep 4, 2018
@alyssais alyssais deleted the cargo-download branch November 2, 2018 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants