about summary refs log tree commit diff
path: root/pkgs/build-support/rust
Commit message (Collapse)AuthorAge
* fetchcargo: fixed config installation pathAlexander Krupenkin2018-12-14
|
* buildRustCrate: fix extraRustcOpts so it is not discardedDarius Jahandarie2018-12-12
|
* Merge master into staging-nextFrederik Rietdijk2018-12-07
|\
| * buildRustCreate: export RUSTDOC during cargo configAustin Seipp2018-12-04
| | | | | | | | | | | | See https://github.com/NixOS/nixpkgs/pull/50452#issuecomment-443455411 Signed-off-by: Austin Seipp <aseipp@pobox.com>
| * Merge pull request #50452 from P-E-Meunier/carnix-fixGraham Christensen2018-12-03
| |\ | | | | | | Rust build-support: fixing a compilation error in some crates
| | * Carnix 0.9.2Pierre-Étienne Meunier2018-11-27
| | |
| | * Fixing "include"Pierre-Étienne Meunier2018-11-22
| | |
| | * Rust build-support: fixing a compilation error in some crates (such as ↵Pierre-Étienne Meunier2018-11-16
| | | | | | | | | | | | proc-macro2)
* | | Merge pull request #51028 from clefru/tmp-cargo-configJörg Thalheim2018-11-26
|\ \ \ | |/ / |/| | | | | buildRustPackage: write cargo config to temporary file instead of source dir
| * | Write cargo config to temporary file instead of source dir.Clemens Fruhwirth2018-11-25
| |/ | | | | | | ... as this fails if the source dir contains a "config" directory.
* | makeRustPlatform: refactor to make it easier to understandJörg Thalheim2018-11-21
| | | | | | | | | | It is now clearer what is supposed to be in the rust attribute set without having studied type theory. The amount of code is identically.
* | defaultCrateOverrides: foundationdb native dependenciesAustin Seipp2018-11-17
|/ | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* defaultCrateOverrides: add serde_deriveJörg Thalheim2018-10-28
|
* defaultCrateOverrides: order alphabeticallyJörg Thalheim2018-10-28
|
* Carnix: 0.7.2 -> 0.8.10 (#40587)Pierre-Etienne Meunier2018-10-28
| | | Carnix: splits input into two parts: creates from creates.io and local ones
* buildRustPackage: fix regex for separating lib and binJustin Humm2018-10-07
| | | | | | | | | | E.g. exa was wrongly put into /lib, as it matches .*.a but not .*\.a
* buildRustPackage now correctly installs binaries to bin and libraries to lib.Edward Tate2018-10-03
|
* Merge remote-tracking branch 'upstream/master' into stagingJohn Ericson2018-09-18
|\
| * buildRustCrate: added some edge cases with binariesAndreas Rammhold2018-09-13
| | | | | | | | | | | | | | This commit adds test based on real-world crates (brotli). There were a few more edge cases that were missing beforehand. Also it turned out that we can get rid of the `finalBins` list since that will now be handled during runtime.
| * buildRustCrate: add test casesAndreas Rammhold2018-09-13
| |
| * buildRustCrate: binary heuristic should be able to treat spacesAndreas Rammhold2018-09-13
| |
| * buildRustCrate: extracted builder scripts into dedicated filesAndreas Rammhold2018-09-13
| | | | | | | | | | | | The build expression got quiet large over time and to make it a bit easier to grasp the different scripts involved in the build are now separated from the nix file.
| * buildRustCrate: add heuristic to picking the right source filesAndreas Rammhold2018-09-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cargo has a few odd (old) ways of picking source files if the `bin.path` attribute isn't given in the Cargo.toml. This commit adds support for some of those. The previous behaviour always defaulted to `src/main.rs` which was not always the right choice. Since there is look-ahead into the unpacked sources before running the actual builder the path selection logic has to be embedded within the build script. `buildRustCrate` currently supports two ways of running building binaries when processing a crate: - Explicit definition of all the binaries (& optionally the paths to their respective `main.rs`) and, - if not binary was explictly configured all files matching the patterns `src/main.rs`, `src/bin/*.rs`. When the explicit list is given without path information paths are now being picked from a list of candidates. The first match wins. The order is the same as within the cargo compatibility code. If the crate does not provide any libraries the path `src/{bin_name}.rs` is also considered. All underscores within the binary names are translated into dashes (`-`) before the lookups are made. This seems to be a common convention.
* | fetchcargo: Fix cargo-vendor-normalise for darwinSilvan Mosberger2018-09-17
| |
* | cargo-vendor-normalise: add a small install checkSymphorien Gibol2018-09-11
| |
* | fetchcargo: add type checking to cargo-vendor-normalise.pyJörg Thalheim2018-09-11
| |
* | fectchcargo: don't break old sha256Symphorien Gibol2018-09-11
| |
* | fetchcargo: normalise cargo config to ensure determinismSymphorien Gibol2018-09-11
| |
* | buildRustPackage, fetchcargo: optionally use vendor config from cargo-vendorJustin Humm2018-09-11
|/ | | | | | | | | | | | | | | | | | | | | | | | | By setting useRealVendorConfig explicitly to true, the actual (slightly modified) config generated by cargo-vendor is used. This solves a problem, where the static vendor config in pkgs/build-support/rust/default.nix would not sufficiently replace all crates Cargo is looking for. As useRealVendorConfig (and writeVendorConfig in fetchcargo) default to false, there should be no breakage in existing cargoSha256 hashes. Nethertheless, imho using this new feature should become standard. A possible deprecation path could be: - introduce this patch - set useRealVendorConfig explicitly to false whereever cargoSha256 is set but migration is not wanted yet. - after some time, let writeVendorConfig default to true - when useRealVendorConfig is true everywhere cargoSha256 is set and enough time is passed, `assert cargoVendorDir == null -> useRealVendorConfig;`, remove old behaviour - after some time, remove all appearences of useRealVendorConfig and the parameter itself
* treewide: Remove usage of remaining redundant platform compatability stuffJohn Ericson2018-08-30
| | | | | Want to get this out of here for 18.09, so it can be deprecated thereafter.
* carnix overrides: add gmp to rink-rs buildInputs & correct crateBinStewart Mackenzie2018-08-15
|
* buildRustPackage: allow patches to fix Cargo.lockLéo Gaspard2018-08-13
|
* pkgs/*: remove unreferenced function argumentsvolth2018-07-21
|
* Merge pull request #43857 from volth/unusedFrederik Rietdijk2018-07-20
|\ | | | | [bot] treewide: remove unreferenced code
| * [bot]: remove unreferenced codevolth2018-07-20
| |
* | treewide: remove aliases in nixpkgsMatthew Bauer2018-07-18
|/ | | | | | | | | | | | | | | | | | This makes the command ‘nix-env -qa -f. --arg config '{skipAliases = true;}'’ work in Nixpkgs. Misc... - qtikz: use libsForQt5.callPackage This ensures we get the right poppler. - rewrites: docbook5_xsl -> docbook_xsl_ns docbook_xml_xslt -> docbook_xsl diffpdf: fixup
* buildRustCrate: Add some commentary about target_os.Shea Levy2018-07-02
|
* Merge branch 'feature/fix-build-rust-create-darwin' of ↵Shea Levy2018-07-02
|\ | | | | | | | | | | git://github.com/marsam/nixpkgs Set target_os properly on darwin.
| * buildRustCrate: Set target_os to "macos" on darwinMario Rodas2018-02-23
| | | | | | | | | | | | The rust compiler uses "macos" as "target_os" conditional on Mac OS[1] [1] https://github.com/rust-lang/rust/blob/8e7a609e635b728eba65d471c985ab462dc4cfc7/src/librustc_back/target/x86_64_apple_darwin.rs#L29
* | Merge branch 'master' into stagingVladimír Čunát2018-05-20
|\ \
| * | curl-sys: fix linking against zlibP-E-Meunier2018-05-20
| | |
| * | buildRustCrate: add extraLinkFlags parameterP-E-Meunier2018-05-20
| | | | | | | | | | | | This is useful when build scripts do not apply linking flags
* | | Merge remote-tracking branch 'upstream/master' into stagingTuomas Tynkkynen2018-05-18
|\| | | | | | | | | | | | | | Conflicts: pkgs/top-level/all-packages.nix
| * | crate-overrides: curl-sys needs zlibMatthew Bauer2018-05-17
| | |
| * | rust: add more sys overridesMatthew Bauer2018-05-17
| | |
* | | Merge pull request #34968 from timokau/rust-findDaiderd Jordan2018-04-23
|\ \ \ | |/ / |/| | buildRustPackage: Restrict `find` to files
| * | buildRustPackage: Restrict `find` to filesTimo Kaufmann2018-02-14
| | | | | | | | | | | | | | | | | | `find -executable` finds everything with the executable bit set, including directories. Thats not harmful in this scenario as `cp` won't copy those directories, but it does result in a few warning messages.
* | | disable parallel rustc (-C codegen-units=1)pe@pijul.org2018-04-16
| | |
* | | Update to 0.7.2pe@pijul.org2018-04-16
| | |
* | | Carnix 0.7pe@pijul.org2018-04-16
| | |