Commit Graph

32 Commits

Author SHA1 Message Date
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -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
Eduard-Mihai Burtescu
dfc4b9d107 rustup: 1.22.1 -> 1.23.1 2020-12-09 12:49:11 +00:00
Tobias Happ
b2679e8b41 rustup: add zlib as runtime dependency
Fixes https://github.com/NixOS/nixpkgs/issues/92946.
2020-09-02 10:57:35 -07:00
zowoq
473536e3b5 buildRustPackage: remove platform.all from packages 2020-08-16 12:48:18 +10:00
Maximilian Bosch
7713fba8f8
Revert "buildRustPackage: fix cargoBuildFlags"
This reverts commit deb78151a9.

Mixing up two distinct phases of a derivation's build is not a good idea. See
also https://github.com/NixOS/nixpkgs/pull/91689#issuecomment-657813954.
2020-07-14 17:39:09 +02:00
Frederik Rietdijk
ae8eee9c3f Merge master into staging-next 2020-07-11 08:59:54 +02:00
R. RyanTM
0d68512749 rustup: 1.21.1 -> 1.22.1 2020-07-11 01:11:05 +00:00
Flakebi
deb78151a9 buildRustPackage: fix cargoBuildFlags
When features were supplied in cargoBuildFlags, the binaries were built
with these features enabled. Unless checking was disabled, `cargo test`
was executed without these build flags, meaning the binaries were
rebuilt and overwritten without the specified features.

Fix this bug by running tests after the installation phase.
2020-07-03 08:53:57 +10:00
Jade Harley
05b765d299 (rustup): (add zlib to rpath in rustup libraries)
(Rust now has a dynamic library dependence on zlib. (see https://github.com/rust-lang/rust/pull/72696))
2020-06-22 21:23:01 -05:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Benjamin Hipple
c3ed8a0e40 rustup: upgrade cargo fetcher and cargoSha256 2020-02-29 12:47:03 -05: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
R. RyanTM
96ce39f5d2 rustup: 1.21.0 -> 1.21.1 2020-01-07 07:58:48 -08:00
Marco A L Barbosa
2168ea38dc rustup: 1.20.2 -> 1.21.0 2019-12-20 10:05:38 -03:00
Basile Henry
ddf26389c8 rustup: 1.20.0 -> 1.20.2 2019-10-16 20:01:49 +01:00
Basile Henry
f61e23ac13 rustup: 1.19.0 -> 1.20.0 2019-10-15 11:40:21 +01:00
zimbatm
d5817fa95a
rustup: 1.18.3 -> 1.19.0 2019-09-13 16:33:40 +00:00
Vladyslav M
525ba92d22
rustup: 1.18.2 -> 1.18.3 2019-05-23 16:13:29 +03:00
xrelkd
7c6679d787
rustup: 1.18.1 -> 1.18.2 2019-05-02 21:18:10 -05:00
xrelkd
dc6190f04a rustup: 1.17.0 -> 1.18.1 2019-04-26 17:50:04 +08:00
dywedir
2a4a90f740
rustup: 1.16.0 -> 1.17.0 2019-03-07 13:50:55 +02:00
R. RyanTM
51f6839a9a rustup: 1.15.0 -> 1.16.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/rustup/versions
2018-12-14 04:16:23 -08:00
Vladyslav Mykhailichenko
7e8cc55528
rustup: 1.13.0 -> 1.15.0 2018-11-29 18:31:05 +02:00
Vladyslav Mykhailichenko
c931b8609b rustup: 1.11.0 -> 1.13.0 2018-07-22 23:45:59 +03:00
Vladyslav M
156dc76030 rustup: 2017-10-29 -> 1.11.0 2018-02-20 22:42:18 +02:00
Vladimír Čunát
6f5d989478
treewide: checkMeta fixes for x86_64-linux 2017-12-07 07:50:47 -05:00
Leon Isenberg
9e5ba4eb8b rustup: 1.3.0 -> 2017-10-29 2017-10-29 21:40:56 +01:00
Leon Isenberg
cbe326feb8 rustup: Patch rustup to patchelf binaries 2017-10-29 21:40:56 +01: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
Andreas Rammhold
14c3ce919b
rustup: 1.2.0 -> 1.3.0 2017-09-05 22:27:30 +02:00
Jörg Thalheim
10eef8c196
rustup: init at 1.2.0 2017-04-17 15:53:36 +02:00