diff options
author | Graham Christensen <graham@grahamc.com> | 2017-12-12 18:55:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12 18:55:23 -0500 |
commit | e5629dc51a313c3b99725616718d2deff49cd891 (patch) | |
tree | db8c9beb70833b2503e8c9da305dc3ac0294f8fe /pkgs/build-support/rust | |
parent | 3cad1abf9e5e8a4e0b38270b1d7c7cd89a97e92b (diff) | |
parent | f33a513d2b1f07da28549ffb7067f913bb3e302a (diff) | |
download | nixlib-e5629dc51a313c3b99725616718d2deff49cd891.tar nixlib-e5629dc51a313c3b99725616718d2deff49cd891.tar.gz nixlib-e5629dc51a313c3b99725616718d2deff49cd891.tar.bz2 nixlib-e5629dc51a313c3b99725616718d2deff49cd891.tar.lz nixlib-e5629dc51a313c3b99725616718d2deff49cd891.tar.xz nixlib-e5629dc51a313c3b99725616718d2deff49cd891.tar.zst nixlib-e5629dc51a313c3b99725616718d2deff49cd891.zip |
Merge pull request #32365 from vcunat/p/check-meta
check meta, treewide
Diffstat (limited to 'pkgs/build-support/rust')
-rw-r--r-- | pkgs/build-support/rust/cargo-vendor.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/build-support/rust/cargo-vendor.nix b/pkgs/build-support/rust/cargo-vendor.nix index 6b50f8b83e73..9c379eaa3337 100644 --- a/pkgs/build-support/rust/cargo-vendor.nix +++ b/pkgs/build-support/rust/cargo-vendor.nix @@ -8,13 +8,15 @@ let x86_64-linux = "1hxlavcxy374yypfamlkygjg662lhll8j434qcvdawkvlidg5ii5"; x86_64-darwin = "1jkvhh710gwjnnjx59kaplx2ncfvkx9agfa76rr94sbjqq4igddm"; }; - hash = hashes. ${system} or (throw "missing bootstrap hash for platform ${system}"); + hash = hashes. ${system} or badSystem; + + badSystem = throw "missing bootstrap hash for platform ${system}"; platforms = { x86_64-linux = "x86_64-unknown-linux-musl"; x86_64-darwin = "x86_64-apple-darwin"; }; - platform = platforms . ${system}; + platform = platforms . ${system} or badSystem; in stdenv.mkDerivation { name = "cargo-vendor-${version}"; |