summary refs log tree commit diff
path: root/pkgs/development/compilers/rust/head.nix
diff options
context:
space:
mode:
authorDavid Craven <david@craven.ch>2016-06-14 12:49:48 +0200
committerDavid Craven <david@craven.ch>2016-06-15 12:47:13 +0200
commit54f80775cb58b3aa784b323b1eddb14e45d86fc4 (patch)
treebce4bd898a59c13f8f7035c1612c27a6ad9b1578 /pkgs/development/compilers/rust/head.nix
parentd8a7aaf179cfad732720b996c76c55488b8d6d20 (diff)
downloadnixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.tar
nixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.tar.gz
nixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.tar.bz2
nixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.tar.lz
nixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.tar.xz
nixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.tar.zst
nixlib-54f80775cb58b3aa784b323b1eddb14e45d86fc4.zip
rust: Refactoring of rust and cargo packages
Diffstat (limited to 'pkgs/development/compilers/rust/head.nix')
-rw-r--r--pkgs/development/compilers/rust/head.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/compilers/rust/head.nix b/pkgs/development/compilers/rust/head.nix
new file mode 100644
index 000000000000..bbfe5c9a1529
--- /dev/null
+++ b/pkgs/development/compilers/rust/head.nix
@@ -0,0 +1,27 @@
+{ stdenv, callPackage, rustPlatform,
+  targets ? [], targetToolchains ? [], targetPatches ? [] }:
+
+rec {
+  rustc = callPackage ./rustc.nix {
+    shortVersion = "master-1.11.0";
+    forceBundledLLVM = false;
+    srcRev = "298730e7032cd55809423773da397cd5c7d827d4";
+    srcSha = "0hyz5j1z75sjkgsifzgxviv3b1lhgaz8wqwvmq80xx5vd78yd0c1";
+    patches = [ ./patches/disable-lockfile-check.patch
+                ./patches/use-rustc-1.9.0.patch ]
+      ++ stdenv.lib.optional stdenv.needsPax ./patches/grsec.patch;
+    inherit targets;
+    inherit targetPatches;
+    inherit targetToolchains;
+    inherit rustPlatform;
+  };
+
+  cargo = callPackage ./cargo.nix rec {
+    version = "2016.06.07";
+    srcRev = "3e70312a2a4ebedace131fc63bb8f27463c5db28";
+    srcSha = "0nibzyfjkiqfnq0c00hhqvs856l5qls8wds252p97q5q92yvp40f";
+    depsSha256 = "1xbb33aqnf5yyws6gjys9w8kznbh9rh6hw8mpg1hhq1ahipc2j1f";
+    inherit rustc; # the rustc that will be wrapped by cargo
+    inherit rustPlatform; # used to build cargo
+  };
+}