diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-01-10 20:51:11 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-01-13 13:48:24 +0300 |
commit | d1ed30ac0d6704300ba5c4251bb4b253a8f19329 (patch) | |
tree | c6bcdcb22dad826bf48507e54dc8531117999f6f /pkgs/development/tools | |
parent | cdb5f269e2c8efb8379d0624d3a2c9135298b20c (diff) | |
download | nixpkgs-d1ed30ac0d6704300ba5c4251bb4b253a8f19329.tar nixpkgs-d1ed30ac0d6704300ba5c4251bb4b253a8f19329.tar.gz nixpkgs-d1ed30ac0d6704300ba5c4251bb4b253a8f19329.tar.bz2 nixpkgs-d1ed30ac0d6704300ba5c4251bb4b253a8f19329.tar.lz nixpkgs-d1ed30ac0d6704300ba5c4251bb4b253a8f19329.tar.xz nixpkgs-d1ed30ac0d6704300ba5c4251bb4b253a8f19329.tar.zst nixpkgs-d1ed30ac0d6704300ba5c4251bb4b253a8f19329.zip |
cargoUnstable: init at 2016-01-10
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/build-managers/cargo/head.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/cargo/head.nix b/pkgs/development/tools/build-managers/cargo/head.nix new file mode 100644 index 00000000000..d5a2dce6682 --- /dev/null +++ b/pkgs/development/tools/build-managers/cargo/head.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchgit, rustPlatform, file, curl, python, pkgconfig, openssl +, cmake, zlib, makeWrapper }: + +with rustPlatform; + +with ((import ./common.nix) { + inherit stdenv rustc; + version = "2016-01-10"; +}); + +buildRustPackage rec { + inherit name version meta passthru; + + # Needs to use fetchgit instead of fetchFromGitHub to fetch submodules + src = fetchgit { + url = "git://github.com/rust-lang/cargo"; + rev = "ca373452de159491354cf38279dbc19308c91e72"; + sha256 = "0fx88b3ndvzhfwq159xavs0z5c7jww231kd65cbzyih9g0ab9x65"; + }; + + depsSha256 = "0csagk2dnwg5z0vbxilz1kzcygd4llw7s81ka0xn1g05x30jqrnn"; + + buildInputs = [ file curl pkgconfig python openssl cmake zlib makeWrapper ]; + + configurePhase = '' + ./configure --enable-optimize --prefix=$out --local-cargo=${cargo}/bin/cargo + ''; + + buildPhase = "make"; + + # Disable check phase as there are lots of failures (some probably due to + # trying to access the network). + doCheck = false; + + installPhase = '' + make install + ${postInstall} + ''; +} |