-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathshell.nix
75 lines (64 loc) · 2.05 KB
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# let
# in
# with nixpkgs;
# let
# nightlyBuildRustPlatform = recurseIntoAttrs
# (makeRustPlatform
# (
# {
# rustc = nixpkgs.latest.rustChannels.nightly.rust;
# # {
# # date = "2018-09-08";
# # hash = "1p0xkpfk66jq0iladqfrhqk1zc1jr9n2v2lqyf7jjbrmqx2ja65i";
# # };
# cargo = nixpkgs.latest.rustChannels.nightly.cargo;
# }
# )
# );
# racer = nightlyBuildRustPlatform.buildRustPackage rec {
# name = "racer-${version}";
# version = "v2.1.5";
# src = fetchFromGitHub {
# owner = "racer-rust";
# repo = "racer";
# rev = "${version}";
# sha256 = "0dn4qck8yxkafpd4lx06x5vg23q3ssi47n4b3778p15g27m6gkdl";
# };
# doCheck = false;
# cargoSha256 = "1qsjs3wq61njczqwcvj1gy3m55cmb37k4jgvpk2j5w64nba7mdx9";
# meta = with stdenv.lib; {
# description = "Rust Auto-Complete-er. A utility intended to provide Rust code completion for editors and IDEs.";
# homepage = https://github.com/racer-rust/racer;
# license = licenses.unlicense;
# maintainers = [ maintainers.tailhook ];
# platforms = platforms.all;
# };
# };
let
moz_overlay = import ((import <nixpkgs> {}).fetchFromGitHub
{ owner = "mozilla";
repo = "nixpkgs-mozilla";
inherit
({ url = "https://github.com/mozilla/nixpkgs-mozilla";
rev = "c985206e160204707e15a45f0b9df4221359d21c";
sha256 = "0k0p3nfzr3lfgp1bb52bqrbqjlyyiysf8lq2rnrmn759ijxy2qmq";
fetchSubmodules = false;
}) rev sha256;
});
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
in
with nixpkgs;
stdenv.mkDerivation {
name = "rust-env";
buildInputs = [
# nixpkgs.latest.rustChannels.beta.rust
(nixpkgs.rustChannelOf { date = "2018-10-24"; channel = "beta"; }).rust
rustfmt ctags rustracer rustPlatform.rustcSrc carnix
rustup
vscode
liburcu openssl gnome3.gcr krb5 icu zlib
gnome3.gnome-keyring gnome3.libsecret desktop-file-utils xorg.xprop
];
# Set Environment Variables
RUST_BACKTRACE = 1;
}