Commit Graph

13 Commits

Author SHA1 Message Date
oxalica
0ca2e7d621
rust-analyzer: 2021-02-15 -> 2021-02-22 2021-02-22 20:00:24 +08: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
oxalica
68060f6f6f
makeRustPlatform: add rustLibSrc
rust-analyzer: rustcSrc -> rustLibSrc to fix build
2020-11-07 01:42:27 +08:00
oxalica
7ac7ce8b1a
rust-analyzer: 2020-10-19 -> 2020-11-02 2020-11-07 01:29:51 +08:00
oxalica
dc12101886 rust-analyzer: 2020-10-12 -> 2020-10-19 2020-10-19 13:26:54 -07:00
oxalica
c652646390 rust-analyzer: 2020-10-05 -> 2020-10-12 2020-10-13 20:01:37 -07:00
oxalica
7d32577544
rust-analyzer: 2020-09-21 -> 2020-09-28 2020-09-29 23:19:02 +08:00
oxalica
0e0dc5544c rust-analyzer: 2020-08-24 -> 2020-09-21 2020-09-21 10:55:15 -07:00
zowoq
473536e3b5 buildRustPackage: remove platform.all from packages 2020-08-16 12:48:18 +10:00
oxalica
26de7b3711
rust-analyzer: disable install check due to #93119 2020-07-14 21:51:50 +08:00
oxalica
ddacdbc953
rust-analyzer: fix version display and add check 2020-07-14 20:15:55 +08:00
Maximilian Bosch
6b23cfe689
rustPlatform: add buildAndTestSubdir-argument
There are several tarballs (such as the `rust-lang/rust`-source) with a
`Cargo.toml` at root and several sub-packages (with their own Cargo.toml)
without using workspaces[1].

In such a case it's needed to move into a subdir to only build the
specified sub-package (e.g. `rustfmt` or `rsl`), however the artifacts
are at `/target` in the root-dir of the build environment. This breaks
the build since `buildRustPackage` searches for executables in `target`
(which is at the build-env's root) at the end of the `buildPhase`.

With the optional `buildAndTestSubdir`-argument, the builder moves into
the specified subdir using `pushd`/`popd` during `buildPhase` and
`checkPhase`.

Also moved the logic to find executables and libs to the end of the `buildPhase`
from a custom `postBuild`-hook to fix packages with custom `build`/`install`-procedures
such as `uutils-coreutils`.

[1] https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html
2020-05-13 01:47:17 +02:00
oxalica
3ea54e6972
rust-analyzer: init at unstable-2020-03-09 2020-03-10 19:12:35 +08:00