Commit graph

53 commits

Author SHA1 Message Date
Maximilian Bosch 8484a25b45
rustracer: 2.1.44 -> 2.1.46, fix build
Failing Hydra build: https://hydra.nixos.org/build/147238379
After the update of Rust to 1.53[1] this package broke because it's
heavily tied to the compiler version. Please note that we cannot upgrade
to the latest version (2.1.48) as this'd require unreleased features of
`rustc`.

[1] 37ac6d6e76
2021-07-09 00:06:40 +02:00
Maximilian Bosch 10f33d0d3b rustracer: 2.1.40 -> 2.1.44
NOTE: even though the latest upstream version is 2.1.46 we cannot use
this as every rustracer version technically requires nightly Rust. We
work around this by setting `RUSTC_BOOTSTRAP`, but also have to stick to
older versions where each used "nightly" feature is already in a `rustc`
that's also available in `nixpkgs`.

ZHF #122042
Closes #119155
Hydra build: https://hydra.nixos.org/build/142609369
2021-05-07 15:25:43 -07:00
Ben Siraphob c522fec274 pkgs/development/tools: stdenv.lib -> lib 2021-01-23 20:30:03 +07:00
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Maximilian Bosch 61b8a2c720
rustracer: 2.1.35 -> 2.1.40, fix build
Failing build: https://hydra.nixos.org/build/134175791
ChangeLog: https://github.com/racer-rust/racer/blob/v2.1.40/CHANGELOG.md

A few more things are worth noting:

* It's not possible to update to latest version (2.1.42) at the time of
  committing since this requires a newer `rustc` (1.51 to be precise) to
  compile.
* For proper completion, `rustLibSrc` rather than `rustcSrc` must be
  used now. The two were separated here previously[1].
* Dropped the `checkPhase` and replaced it with a list of `checkFlags`.
  This has the benefit that the default `checkPhase` from
  `buildRustPackage` can be used which properly configures parallelism
  and which target to use (i.e. `release` in this case which reduces
  build time).

[1] 68060f6f6f
2021-01-04 21:20:42 +01:00
zowoq 473536e3b5 buildRustPackage: remove platform.all from packages 2020-08-16 12:48:18 +10:00
Maximilian Bosch 390ce60d49
rustracer: 2.1.33 -> 2.1.35
ChangeLog: https://github.com/racer-rust/racer/blob/master/CHANGELOG.md#2135
Updating to 2.1.36[1] isn't possible as it'd require latest nightly
Rust.

[1] https://crates.io/crates/racer/2.1.36
2020-07-26 11:32:40 +02:00
Maximilian Bosch 514afd26bc
rustracer: 2.1.30 -> 2.1.33, fix build
ChangeLog: https://github.com/racer-rust/racer/blob/v2.1.33/CHANGELOG.md#2132
Broken build: https://hydra.nixos.org/build/123837796

Please note that I intentionally didn't bump to `2.1.35` since it
requires nightly features. `2.1.33` is the latest version which supports
our current `rustc`-version (1.44.1) on nixpkgs `master`.

Closes #89481
2020-07-13 22:46:22 +02:00
Michael Reilly 84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Benjamin Hipple 6ea0cad714 rustracer: upgrade cargo fetcher and cargoSha256 2020-03-09 00:10:59 -04:00
Benjamin Hipple eb11feaa0b treewide: change fetchCargoTarball default to opt-out
Changes the default fetcher in the Rust Platform to be the newer
`fetchCargoTarball`, and changes every application using the current default to
instead opt out.

This commit does not change any hashes or cause any rebuilds. Once integrated,
we will start deleting the opt-outs and recomputing hashes.

See #79975 for details.
2020-02-13 22:41:37 -08:00
Maximilian Bosch 6afcc2dadc
rustracer: 2.1.29 -> 2.1.30
https://crates.io/crates/racer/2.1.30
2020-02-06 08:11:25 +01:00
Maximilian Bosch 41e06190bb
rustracer: 2.1.28 -> 2.1.29
https://crates.io/crates/racer/2.1.29

The package is now pinned to the git rev that is published as 2.1.29 on
crates.io (there's no 2.1.29 tag on GitHub unfortunately).
2020-01-10 21:45:33 +01:00
Maximilian Bosch ee0da3561b
rustracer: 2.1.27 -> 2.1.28
https://github.com/racer-rust/racer/releases/tag/v2.1.28

Also fixes the build: https://hydra.nixos.org/build/109459958
2020-01-05 20:16:13 +01:00
Daniël de Kok 36164541c5 rustracer: fix default RUST_SRC_PATH 2019-10-06 09:56:55 +02:00
Daniël de Kok 0e49168cc6 rustracer: 2.1.22 -> 2.1.27
Fixes failing build on master.
2019-10-06 09:47:07 +02:00
volth 7bb6b373ab treewide: name -> pname (#67513) 2019-08-31 07:41:22 -04:00
Robin Gloster 4e60b0efae
treewide: update globin's maintained drvs 2019-08-20 19:36:05 +02:00
Jörg Thalheim 8166fc21b8
racer: add Security framework on darwin 2019-07-30 08:27:38 +01:00
arcnmx 530e6004ef rustracer: 2.0.14 -> 2.1.22 2019-07-29 22:10:12 -07:00
Alyssa Ross 062210bdff treewide: update cargoSha256 hashes for cargo-vendor upgrade
A recent upgrade of cargo-vendor changed its output slightly, which
broke all cargoSha256 hashes in nixpkgs.
See https://github.com/NixOS/nixpkgs/issues/60668 for more information.

Since then, a few hashes have been fixed in master by hand, but there
were a lot still to do, so I did all of the ones left over with some
scripts I wrote.

The one hash I wasn’t able to update was habitat's, because it’s
currently broken and the build doesn’t get far enough to produce a
hash anyway.
2019-06-01 15:17:52 +00:00
Daniël de Kok f780a982cf rustracer: remove rustup dependency
racer builds fine on Linux and macOS without racer as a dependency.
racer does not actually use rustup, but 'rustc --print sysroot', which
is already available through the rustc dependency.
2018-11-10 08:38:20 +01:00
Jonathan Curran 979f10f704 rustracer: 2.0.12 -> 2.0.14 2018-07-21 20:47:30 -06:00
Joerg Thalheim 1d8f539bd4 rustracer: 2.0.9 -> 2.0.12
don't hard-code RUST_SRC_PATH so it can be overwritten by users/rustup
2017-11-15 21:51:29 +00:00
Kevin Cox 5f8cf0048e rust: update cargo builder to fetch registry dynamically
The biggest benefit is that we no longer have to update the registry
package. This means that just about any cargo package can be built by
nix. No longer does `cargo update` need to be feared because it will
update to packages newer then what is available in nixpkgs.

Instead of fetching the cargo registry this bundles all the source code
into a "vendor/" folder.

This also uses the new --frozen and --locked flags which is nice.

Currently cargo-vendor only provides binaries for Linux and
macOS 64-bit. This can be solved by building it for the other
architectures and uploading it somewhere (like the NixOS cache).

This also has the downside that it requires a change to everyone's deps
hash. And if the old one is used because it was cached it will fail to
build as it will attempt to use the old version. For this reason the
attribute has been renamed to `cargoSha256`.

Authors:
* Kevin Cox <kevincox@kevincox.ca>
* Jörg Thalheim <Mic92@users.noreply.github.com>
* zimbatm <zimbatm@zimbatm.com>
2017-10-23 00:30:47 +01:00
dywedir 805467bb5a rustracer: 2.0.6 -> 2.0.9 2017-07-28 11:58:31 +02:00
Benno Fünfstück 496dac571c racer[d]: fix RUST_SRC_PATH
`rustc.src` is a `tar.gz` archive, but we need it unpacked.
2017-07-18 17:16:52 +02:00
c74d eb9f76911f rustracer: 2.0.5 -> 2.0.6 2017-03-22 01:45:55 +00:00
Tadas Barzdzius edbdb4b07e rustracer: 1.2.10 -> 2.0.5 2017-01-27 22:07:34 +01:00
Moritz Ulrich a6562f77d0 rustracer: Enable doCheck and fix typo. 2016-07-25 21:39:47 +02:00
Gabriel Ebner 457a428813 rustracer: add meta.platforms 2016-07-14 12:10:09 +02:00
David Craven 54f80775cb rust: Refactoring of rust and cargo packages 2016-06-15 12:47:13 +02:00
Moritz Ulrich ff771e948c rustRacer: 1.1.0 -> 1.2.10 2016-05-28 15:19:00 +02:00
Robin Gloster ba4b4752f2 racerRust: 1.0.0 -> 1.1.0 2016-01-17 22:05:25 +00:00
Robin Gloster 2d3537fbf2 racer: git-2015-05-18 -> 1.0.0 2015-09-24 08:58:43 +00:00
Ricardo M. Correia 9b752fd0e1 buildRustPackage: Don't hardcode registry index hash
Instead, discover it automatically when building the package.

This makes `buildRustPackage` more future-proof with respect to changes
in how `cargo` generates the hash.

Also, it fixes broken builds in i686 because apparently, cargo generates
a different registry index hash in this architecture (compared to
x86-64).
2015-05-19 19:02:38 +02:00
Ricardo M. Correia 85c48934bc racerRust: 2015-05-04 -> 2015-05-18
Fixes build failure with rustc 1.0.0.
2015-05-19 03:08:34 +02:00
Ricardo M. Correia 755df64ee3 Merge pull request #7501 from wizeman/u/upd-rust
Add support for Rust / Cargo packaging
2015-05-12 17:30:11 +02:00
Ricardo M. Correia e40a43cd1f rustRacer: 2015-04-12 -> 2015-05-04 2015-05-12 17:28:52 +02:00
Pascal Wittmann f99d5cf2fc Fixed some descriptions 2015-04-28 10:55:20 +02:00
Ricardo M. Correia d6093505cc buildRustPackage: Get rid of /proc/self/cwd hack
This makes buildRustPackage portable to non-Linux platforms.

Additionally, now we also save the `Cargo.lock` file into the fetch output, so
that we don't have to run $cargoUpdateHook again just before building.
2015-04-23 20:22:19 +02:00
Ricardo M. Correia d648be6724 buildRustPackage: Add check phase and enable it by default
Also disable check phase in cargo as there are lots of failures (some
probably due to trying to access the network).
2015-04-21 20:45:05 +02:00
Georges Dubus 7d67efa3f2 Add support for building cargo'ed Rust programs 2015-04-21 19:46:29 +02:00
Dmitry Belyaev 854f81da34 Update racerRust 2015-04-16 13:37:18 +10:00
Jordan Woehr 5821e91bd1 Restructure rustc derivations for ease of updating.
Update racerRust to use new rustcMaster and upgrade cargoSnapshot so racer builds.
2015-03-02 12:40:55 -07:00
robmike 9d6bad0b9e Install racer.el 2015-01-23 21:12:22 -05:00
Ricardo M. Correia a94c0d2b0f racerRust: Update from 2015-01-07 -> 2015-01-20 2015-01-20 22:19:17 +01:00
John Ericson 81bc099d48 Remove rust=rustc alias
I was asked to add this for backwards comparability when I renamed `rust`
to `rustc` and added `rustcMaster`. It has been a few months so I'd hope
deprecating this is acceptable.
2015-01-11 17:33:58 +00:00
Georges Dubus 4067b5bff4 racer: fixed version 2015-01-10 14:25:54 +01:00
Georges Dubus 74f15178b1 racer: updated to last git master 2015-01-09 14:16:04 +01:00