From 57705705ae33e334fd2a8ae489a2b87df5243a81 Mon Sep 17 00:00:00 2001 From: xrelkd <46590321+xrelkd@users.noreply.github.com> Date: Wed, 10 Apr 2019 18:05:24 +0800 Subject: [PATCH] cargo-xbuild: init at 0.5.7 (#59228) --- .../tools/rust/cargo-xbuild/default.nix | 22 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/tools/rust/cargo-xbuild/default.nix diff --git a/pkgs/development/tools/rust/cargo-xbuild/default.nix b/pkgs/development/tools/rust/cargo-xbuild/default.nix new file mode 100644 index 000000000000..60d0ee644657 --- /dev/null +++ b/pkgs/development/tools/rust/cargo-xbuild/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + name = "cargo-xbuild-${version}"; + version = "0.5.7"; + + src = fetchFromGitHub { + owner = "rust-osdev"; + repo = "cargo-xbuild"; + rev = "v${version}"; + sha256 = "11hjyf16m4ri4c912jsdmqq88xcrys119135nz48y5p7b4yp0s7a"; + }; + + cargoSha256 = "077qiqm470iqcgxqjzbmzxikxd5862vyg788hacli4yzpvyaq9r9"; + + meta = with stdenv.lib; { + description = "Automatically cross-compiles the sysroot crates core, compiler_builtins, and alloc"; + homepage = https://github.com/rust-osdev/cargo-xbuild; + license = with licenses; [ mit asl20 ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1a821c55f31f..de633d80020e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7695,6 +7695,7 @@ in inherit (darwin.apple_sdk.frameworks) Security; }; cargo-fuzz = callPackage ../development/tools/rust/cargo-fuzz { }; + cargo-xbuild = callPackage ../development/tools/rust/cargo-xbuild { }; pyo3-pack = callPackage ../development/tools/rust/pyo3-pack { }; rainicorn = callPackage ../development/tools/rust/rainicorn { };