diff options
author | Joerg Thalheim <joerg@thalheim.io> | 2017-11-15 20:32:41 +0000 |
---|---|---|
committer | Joerg Thalheim <joerg@thalheim.io> | 2017-11-15 21:51:29 +0000 |
commit | 79aee3b57d646b0424e622e27acd6329b265bc65 (patch) | |
tree | ff3e0c6211999a560b3f9c19c3f37446b5de07d7 /pkgs/development/compilers/rust/rust-src.nix | |
parent | c0f08557b96b06790022795690d15c1ffd210e71 (diff) | |
download | nixpkgs-79aee3b57d646b0424e622e27acd6329b265bc65.tar nixpkgs-79aee3b57d646b0424e622e27acd6329b265bc65.tar.gz nixpkgs-79aee3b57d646b0424e622e27acd6329b265bc65.tar.bz2 nixpkgs-79aee3b57d646b0424e622e27acd6329b265bc65.tar.lz nixpkgs-79aee3b57d646b0424e622e27acd6329b265bc65.tar.xz nixpkgs-79aee3b57d646b0424e622e27acd6329b265bc65.tar.zst nixpkgs-79aee3b57d646b0424e622e27acd6329b265bc65.zip |
rustcSrc: remove unrelated files
This package is used to provide semantic completion in tools like racer and is equivalent to rust-src in rustup. This commit gets rid of a number of files not required for completion.
Diffstat (limited to 'pkgs/development/compilers/rust/rust-src.nix')
-rw-r--r-- | pkgs/development/compilers/rust/rust-src.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/compilers/rust/rust-src.nix b/pkgs/development/compilers/rust/rust-src.nix new file mode 100644 index 00000000000..1b819a7f606 --- /dev/null +++ b/pkgs/development/compilers/rust/rust-src.nix @@ -0,0 +1,11 @@ +{ stdenv, rustc }: + +stdenv.mkDerivation { + name = "rust-src"; + src = rustc.src; + phases = [ "unpackPhase" "installPhase" ]; + installPhase = '' + mv src $out + rm -rf $out/{ci,doc,driver,etc,grammar,llvm,rt,rtstartup,rustllvm,test,tools,vendor} + ''; +} |