summary refs log tree commit diff
path: root/pkgs/build-support/rust
Commit message (Collapse)AuthorAge
* default-crate-overrides: add libseat-sysAdam Joseph2023-08-26
| | | | | | This is needed for building `cosmic-comp` using `crate2nix` instead of `buildRustPackage` (like https://github.com/NixOS/nixpkgs/pull/251365/ does).
* Merge #239191: treewide: gobject-introspection from buildInputs to ↵Vladimír Čunát2023-07-26
|\ | | | | | | | | | | nativeBuildInputs ...into staging
| * treewide: gobject-introspection from buildInputs to nativeBuildInputsArtturin2023-06-28
| | | | | | | | | | gobject-introspection should be in nativeBuildInputs for cross to work properly (so propagations and hook work properly)
* | Merge staging-next into staginggithub-actions[bot]2023-07-22
|\ \
| * \ Merge pull request #239624 from Stunkymonkey/use-optionalString-thenFelix Bühler2023-07-22
| |\ \ | | | | | | | | treewide: use optionalString instead of 'then ""'
| | * | treewide: use optionalString instead of 'then ""'Felix Buehler2023-06-24
| | |/
* | / rustPlatform.maturinBuildHook: fix postBuild hook to use ./dist contractDavid Arnold2023-07-16
|/ /
* | importCargoLock: fix git dep config filelinsui2023-06-29
| |
* | Merge master into staging-nextgithub-actions[bot]2023-06-25
|\ \
| * | treewide: use optionalAttrs instead of 'else {}'Felix Buehler2023-06-25
| | |
* | | Merge staging-next into staginggithub-actions[bot]2023-06-22
|\| |
| * | tests.importCargoLock.maturin: reexport maturin.tests.pyo3figsoda2023-06-19
| |/ | | | | | | This allows the Cargo.lock to be removed, since the 2 packages are mostly identical
* | Merge pull request #236490 from alyssais/cargo-stripfigsoda2023-06-20
|\ \ | |/ |/|
| * rustPlatform.cargoBuildHook: don't let cargo stripAlyssa Ross2023-06-20
| | | | | | | | | | This fixes debug info of cloud-hypervisor, which recently added strip = true to its release profile in Cargo.toml.
* | Revert "build-rust-{crate,package}: cleanups"Guillaume Girol2023-06-18
| |
* | Merge master into staging-nextgithub-actions[bot]2023-06-16
|\ \
| * \ Merge pull request #237984 from lopsided98/rustc-armv6lfigsoda2023-06-15
| |\ \
| | * | rustc: add armv6l-linux to platformsBen Wolsieffer2023-06-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | armv6l-linux was incorrectly added to the list of platforms without host tools in #227987. arm-unknown-linux-gnueabihf is present in the list of Tier 2 targets with host tools, and this target corresponds to our armv6l-linux platform.
| * | | build-rust-package: remove unused inputSandro Jäckel2023-06-15
| | | |
| * | | build-rust-crate: cleanup with statixSandro Jäckel2023-06-15
| |/ /
* | | Merge staging-next into staginggithub-actions[bot]2023-06-10
|\| |
| * | treewide: "libary" -> "library"Daniel Nagy2023-06-10
| |/
* / rustPlatform.fetchCargoTarball: remove explicit sparse protocolfigsoda2023-06-02
|/ | | | sparse protocol is now the default since rust 1.70
* fetchCrate: fix registryDlfigsoda2023-05-28
| | | | follow up to #234066, since I made a mistake
* fetchCrate: allow overriding `registryDl`figsoda2023-05-25
| | | | | This will allow `rustPlatform.importCargoLock` to use `fetchCrate` directly instead of including its own implementation.
* Merge pull request #228928 from DeeUnderscore/fix/replace-workspace-values-boolfigsoda2023-05-18
|\
| * rustPlatform.importCargoLock: fix [package] section handlingD Anzorge2023-04-29
| | | | | | | | | | | | | | Members of the [package] table in Cargo.toml can be either subtables, or values like strings and bools. Python is happy to check for membership of "workspace" in a string, since Python strings are iterables, but if the value is a bool, Python will throw an exception.
* | buildRustPackage: disable auditing if it's brokenAlyssa Ross2023-05-09
|/ | | | | | See also: ad3a5326580 ("rust/cargo.nix: disable audit if audit.meta.broken") Fixes cross eval of clippy.
* rustc,rustPlatform.buildRustPackage: broaden platformsAlyssa Ross2023-04-25
| | | | | | | | | | rustc supports way more platforms than Linux and Darwin. We might not be able to build it for every platform at the moment, but that's what meta.broken is for. There are other platforms that rustc can produce binaries for, but can't run on itself, so those are listed in the defaults for buildRustPackage.
* rustPlatform.buildRustPackage: fix crossAlyssa Ross2023-04-24
| | | | | .override breaks splicing, so this was using the shell for the host platform.
* Merge pull request #190610 from amjoseph-nixpkgs/pr/build-rust-crate/gdk3Artturi2023-04-22
|\
| * default-crate-overrides.nix: add gtk-sys (gtk3)Adam Joseph2023-01-15
| |
* | build-rust-crate: dontStrip=!releaseAdam Joseph2023-04-12
| | | | | | | | | | | | | | | | | | | | | | Without this PR, unlike `RUST_LIB_BACKTRACE=1 cargo run` you won't get line numbers in backtraces from binaries built with: ``` nix build -f Cargo.nix --arg release false ``` This PR fixes that.
* | Merge master into staging-nextgithub-actions[bot]2023-04-09
|\ \
| * | https://github.com/NixOS/nixpkgs/pull/224893#pullrequestreview-1375521876Adam Joseph2023-04-06
| | |
| * | default-crate-overrides.nix: prevent `git fetch`Adam Joseph2023-04-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The build.rs script shipped with evdev-sys attempts to detect cross compilation and uses a completely different codepath which does a `git fetch` inside the build script. This doesn't work in nixpkgs. This PR adds a `touch libevdev/.git` to trick the `build.rs` into thinking that it is not necessary to do a `git fetch`. Thanks to @figsoda for finding this more-elegant solution to the problem (my original solution needed to patch `build.rs`): https://github.com/NixOS/nixpkgs/pull/224893#pullrequestreview-1373809617 Tested on: - [x] `aarch64-linux` (cross from `x86_64-linux`)
* | | Merge master into staging-nextgithub-actions[bot]2023-04-06
|\| |
| * | default-crate-overrides.nix: prost-build needs protobufAdam Joseph2023-04-05
| | |
* | | rustPlatform.buildRustPackage: make auditable the defaultfigsoda2023-03-26
| | |
* | | rustPlatform.fetchCargoTarball: use sparse protocol for crates.iozowoq2023-03-27
| | |
* | | Merge staging-next into staginggithub-actions[bot]2023-03-26
|\| |
| * | rustPlatform.fetchCargoTarball: fail on git dependenciesYureka2023-03-26
| | | | | | | | | | | | | | | | | | | | | The reason is that we can not expect the extended logic run on git dependencies starting from Cargo 1.68 to be reproducible in future versions, and thus the output hash would not be sufficiently stable. https://github.com/rust-lang/cargo/pull/11414
| * | rustPlatform.importCargoLock: follow symlinks when copying treeYureka2023-03-26
| | | | | | | | | | | | | | | | | | fixes build when git dependencies contain symlinks into parent directory needed for libdeltachat
| * | rustPlatform.importCargoLock: always fetch submodules when builtins.fetchGit ↵Yureka2023-03-26
| | | | | | | | | | | | is used
* | | Merge staging-next into staginggithub-actions[bot]2023-03-24
|\| |
| * | rustPlatform.importCargoLock: handle workspace Cargo.toml false positivesD Anzorge2023-03-24
| | | | | | | | | | | | | | | | | | Since we grep for 'workspace', it's possible the script ends up running on a Cargo.toml that has the word 'workspace' in a comment, but does not actually use workspaces
| * | Merge pull request #215408 from astro/rust-sysrootzowoq2023-03-24
| |\ \
| | * | build-support/rust: allow cross-compiling the sysrootAstro2023-03-12
| | | |
| | * | build-support/rust/sysroot: let cargo-src crate become no_stdAstro2023-03-12
| | | |
| | * | build-support/rust/sysroot: update Cargo.lockAstro2023-03-12
| | | |