Comments (8)
Hi, here is my default.nix for rust with rust-src:
with import <nixpkgs> {};
let
myrust = (rustChannels.stable.rust.override { extensions = [ "rust-src" ]; });
in
stdenv.mkDerivation {
name = "rust-dev";
buildInputs = [ myrust rustracer ];
RUST_SRC_PATH= "${myrust}/lib/rustlib/src";
}
And at least in emacs racer works with this path :)
from nixpkgs-mozilla.
@bkchr
Your expression almost works for me. I need to use RUST_SRC_PATH= "${myrust}/lib/rustlib/src/rust/src";
. Otherwise racer doesn't find the sources, tested with $ racer complete "std::process"
. I'm wondering how it works for you, as I also can't find a recursive option or something alike on racer.
However, all there is to do is to document the extension attribute somehwere obvious 🤓
from nixpkgs-mozilla.
Yeah you are right, the path was wrong :/
Thx for that^^
Yeah, that should be documented ^^
from nixpkgs-mozilla.
@garbas @nbp Please assign this issue to me. I'll file a documentation PR eventually.
from nixpkgs-mozilla.
@steveej Thanks for your help.
from nixpkgs-mozilla.
I'm still using this PR as documentation :)
from nixpkgs-mozilla.
I'm still using this PR as documentation :)
@fzakaria I never came back to issue but now that I'm reminded of it I'm happy to follow up. What's the exact information in here that's helping you?
from nixpkgs-mozilla.
How to add RUST_SRC_PATH since my IDE was asking for the path.
I saw another pull request that the source was also added to every channel automatically without needing to specify the extension.
The two together would be a really good documentation addition.
from nixpkgs-mozilla.
Related Issues (20)
- Derivations created using this repository are not reproducible HOT 2
- Firefox-nightly 96.0a1 fail to start on NixOS 21.05 HOT 7
- Should git-cinnabar be included into firefox development overlay? HOT 2
- Undefined variable 'phlay' HOT 1
- Firefox fails to compile because -fPIC is passed to `as` HOT 1
- firefox-nightly fails to use vaapi with mesa's radeon driver on NixOS HOT 1
- example in README.md doesn't work with rust-toolchain.toml file HOT 1
- `couldn't find remote ref refs/heads/master` when building `/nix/store/<hash>-channel-rust-1.55.0.toml.drv` HOT 2
- Suddenly can't rebuild anymore because "wrapper called with unexpected argument 'browserName'" HOT 2
- firefox-overlay, impurity, and a missing link in GPG verification? HOT 3
- How to get aarch64 Firefox Nightly builds?
- Install different versions of Firefox side by side. HOT 2
- rustChannelOf doesn't error on argument name typos
- rr fails to build when using this overlay with newer nixpkgs HOT 5
- Building `rustChannelOf({...}).rust-src` from `rust-overlay.nix` errors. HOT 6
- What to do about stdarch, being submodule, not being in source tarball? HOT 1
- Firefox started to crash in some situations HOT 1
- Deprecation warning: "rustPlatform.rust.cargo is deprecated. Use cargo instead." May be easy fix, but... HOT 2
- archive.mozilla.org is returning a bad SSL cert
- Firefox Nightly is segfaulting (SIGSEGV) after most recent update; installing firefox-beta fixes it HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixpkgs-mozilla.