Rijk van Putten
ef80ead953
Add fileset helpers ( #731 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-11-08 12:39:11 -08:00
Ivan Petkov
c052ed5e84
buildDepsOnly: set CRANE_BUILD_DEPS_ONLY env var when running ( #722 )
2024-10-12 23:28:15 +00:00
Ivan Petkov
adfdd217c7
docs: add hint to stage .cargo/config.toml when using alt registries ( #721 )
2024-10-12 22:17:10 +00:00
Rebecca Turner
112a80c012
Add cargoDocTest
( #720 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-10-12 22:08:18 +00:00
Ivan Petkov
08f45b5a2e
registryFromSparse: add missing API docs ( #710 )
2024-09-25 03:44:07 +00:00
Ivan Petkov
5c57ab39aa
docs: document how to override mkShell/stdenv for devShell ( #709 )
2024-09-25 03:27:17 +00:00
Ivan Petkov
d3797a7544
cargoDoc: add a fallback search for non-cross-compiled docs ( #708 )
2024-09-24 20:15:24 -07:00
Ivan Petkov
7e4586bad4
docs: fix typo
2024-09-03 17:26:06 -07:00
Ivan Petkov
cc29aa8ea2
docs: add a FAQ entry about git-deps and relative file paths ( #695 )
2024-09-03 23:50:10 +00:00
[eureka@nixos]
96fd12c710
Add taploFmt
TOML format function to mkLib
( #674 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-08-31 17:27:30 +00:00
Ivan Petkov
6f7504ad93
Drop dependency on nixpkgs ( #692 )
...
Callers should use `mkLib` with an instantiation of `pkgs` instead of
using `crane.lib.${system}` directly
2024-08-29 23:29:16 +00:00
Ivan Petkov
95b42093e5
downloadCargoPackageFromGit: take hash
instead of sha256
( #691 )
2024-08-29 15:47:52 -07:00
Ivan Petkov
af693bf608
buildPackage: do not add jq
to nativeBuildInputs ( #685 )
...
Doing so ends up resulting in PKG_CONFIG_PATH changing which may result
in various `*-sys` crates needing to be rebuilt
2024-08-22 16:24:53 -07:00
Nils Harbke
4c6c77920b
Fix positioning of cargoExtraArgs in craneLib.cargoNextest ( #678 )
...
Both `cargo nextest run` and `cargo llvm-cov` do not place any cargo
options/flags right behind `cargo <HERE> ...`. All cargo related flags
can be added to the `cargoNextestExtraArgs` attribute. [Issue #675 ]
After altering `checkPhaseCargoCommand` to use one of two explicit
command strings inside if/else blocks, it is no longer necessary to
default `cmd` to an empty value when `withLlvmCov` is set to `true`.
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-08-06 09:07:59 -07:00
Ivan Petkov
d0c8f4ed85
ci: fix dependency pinning
...
Looks like our pinned test/flake.lock was being ignored and the latest
version of all inputs was being used. This should fix that oversight
(and give us better caching to boot)
2024-08-05 18:25:32 -07:00
Simon Žlender
aa5dcd0518
Splice overrideToolchain ( #652 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-06-29 11:29:52 -07:00
Ivan Petkov
a3f0c63eed
Try to avoid IFD in vendorCargoDeps
and crateNameFromCargoToml
; also avoid recommending nesting cleanCargoSource
and path
( #641 )
...
We don't need to nest `cleanCargoSource` and `path` just to populate a
default value for `name`. As they both ultimately delegate to
`builtins.path`, the nesting can lead to IFD in situations which are
otherwise avoidable
2024-06-10 20:53:46 -07:00
Ivan Petkov
b7a1655564
Fix crate vendoring to not run the default fixup
phase ( #619 )
2024-05-19 21:59:49 +00:00
Ivan Petkov
a7146b0440
flake: deprecate crane.lib.${system} ( #617 )
2024-05-19 01:07:07 +00:00
Ivan Petkov
54fe6fed44
vendorCargoDeps: allow arbitrary overrides when vendoring sources ( #615 )
2024-05-18 23:39:46 +00:00
Ivan Petkov
33d5862dbb
crateNameFromCargoToml: support selecting a name from metadata
( #606 )
2024-05-04 19:36:42 +00:00
x10an14
23c2d75556
cargoDoc: support docInstallRoot to influence installation behavior ( #603 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-05-04 17:49:24 +00:00
Jean
cd1bb8fb22
Remove cargoExtraArgs from cargoAudit ( #602 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-05-04 17:20:06 +00:00
Nick Boultbee
cc1c68d5a3
Fix typo in cargoNextestExtraArgs
docs ( #599 )
2024-05-01 01:33:35 +00:00
Ivan Petkov
f6c6a2fb1b
Add workspace example ( #597 )
2024-04-21 22:23:03 +00:00
Ivan Petkov
55f4939ac5
docs: add a primer on .override and .overrideAttrs ( #596 )
2024-04-21 17:39:41 +00:00
Ivan Petkov
a329cd0039
docs: reword quickstart examples for existing projects ( #569 )
2024-03-28 00:38:23 +00:00
Ivan
7e468a4555
Update doc for unfriendly build scripts ( #567 )
2024-03-25 22:53:19 +00:00
Ivan Petkov
55187a8218
cargoNextest: support withLlvmCov ( #560 )
...
* This adds a convenience method of running `nextest` within `cargo
llvm-cov` without having to wire up the internal details manually
2024-03-22 22:39:45 +00:00
Ivan Petkov
f1dabc4aba
crateRegistries: use crates.io's CDN to download sources ( #548 )
...
https://blog.rust-lang.org/2024/03/11/crates-io-download-changes.html
2024-03-19 14:55:28 -07:00
Luca Di Carlo
766e70fd47
typo(end-to-end-testing.md) ( #535 )
2024-03-02 17:21:29 +00:00
Jeremy Fleischman
505976eaea
Fix typo: OUTPUT
-> OUTPATH
( #520 )
2024-02-09 06:55:58 +00:00
Ivan Petkov
39e0883341
docs: document workaround for the bindgen
crate being rebuilt ( #519 )
2024-02-09 00:22:19 +00:00
Ivan Petkov
f2926e34a1
chore: replace overrideScope' with overrideScope ( #517 )
2024-02-08 03:38:28 +00:00
Ivan Petkov
7d5b46c17d
Update docs ( #514 )
...
* vendorCargoDeps: update error message to hint towards staging Cargo.lock
* crateNameFromCargoToml: update docs to note directory are not crawled
2024-02-04 19:31:22 +00:00
Charles Hall
0327ca9d77
force buildDepsOnly
to produce out
only ( #493 )
...
This allows multi-output derivations using e.g. `buildPackage` to work.
Without this change, they fail to build because Nix thinks
`buildDepsOnly` is supposed to produce mulitple outputs too, but it
doesn't.
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-01-27 17:52:30 +00:00
Leonardo Eugênio
2a5136f14a
buildTrunkPackage: Add "wasm-bindgen-cli" argument ( #363 )
2023-12-20 08:24:53 -08:00
Ivan Petkov
537ebb11db
docs: add note about avoiding pyo3 rebuilds ( #486 )
2023-12-19 03:30:44 +00:00
Ivan Petkov
c53a8c071d
buildDepsOnly: pass --no-run to cargo test by default ( #470 )
2023-11-30 00:43:47 +00:00
Ivan Petkov
514cd663e5
examples: add sqlx template ( #467 )
2023-11-29 01:08:21 +00:00
Ivan Petkov
3aaa2c5ddb
fix: avoid path starts with illegal character error ( #459 )
...
* Looks like Nix 2.19.0 doesn't like it when a path starts with `.` so
this updates the examples and tests to avoid doing that
2023-11-26 10:15:16 -08:00
Ivan Petkov
f1c2fe6716
installCargoArtifactsHook: allow specifying additional zstd args ( #450 )
2023-11-05 20:34:43 +00:00
Ivan Petkov
2b1203872d
chore: clean up some dead code warnings ( #449 )
2023-11-05 18:42:08 +00:00
Ivan Petkov
758ae44222
installCargoArtifactsHook: change default installation mode to use-zstd ( #442 )
2023-10-20 22:28:41 +00:00
Aidan Gauland
f8f1b3fc5b
cargoLib.cargoDeny: init ( #440 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2023-10-20 21:45:03 +00:00
Ivan Petkov
6b229eec8a
fix: correct installFromCargoBuildLogHook docs
2023-10-20 07:11:01 -07:00
Ivan Petkov
eb5034b6ee
replaceCargoLockHook: run as prePatchHook not postUnpack ( #434 )
2023-10-17 03:31:33 +00:00
Ivan Petkov
f2b70c85d5
devShell: add clippy and rustfmt from the current toolchain ( #432 )
2023-10-17 00:24:15 +00:00
Ivan Petkov
d4bddd0a8c
chore: update all examples with strictDeps = true;
( #430 )
2023-10-15 22:25:34 +00:00
simonzkl
47f84c5b60
removeReferencesToVendoredSources: sign aarch64-darwin binaries ( #418 )
...
---------
Co-authored-by: Simon Zlender <simonz@btcx.com>
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2023-10-15 20:09:08 +00:00