Commit Graph

204 Commits

Author SHA1 Message Date
Ivan Petkov
0e38021181
Update CHANGELOG 2024-11-18 14:39:07 -08:00
Ivan Petkov
3096fc35ad buildTrunkPackage: correctly inherit buildPhaseCargoCommand 2024-11-18 13:37:01 -08:00
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
e47c16b56e
removeReferencesToVendoredSourcesHook: avoid using /dev/fd directly (#737) 2024-11-08 18:36:43 +00:00
Ivan Petkov
f53b0b974f
buildTrunkPackage: set --release=true on newer trunk versions (#736) 2024-11-08 18:25:05 +00:00
Ivan Petkov
f876e3d905
Update CHANGELOG 2024-10-12 16:35:44 -07:00
Ivan Petkov
c052ed5e84
buildDepsOnly: set CRANE_BUILD_DEPS_ONLY env var when running (#722) 2024-10-12 23:28:15 +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
fd86b78f5f
vendorCargoRegistries: warn when registry names are not found (#716) 2024-10-07 16:39:36 -07:00
Ivan Petkov
5b03654ce0
Update CHANGELOG 2024-09-25 19:11:45 -07:00
Ivan Petkov
d3797a7544
cargoDoc: add a fallback search for non-cross-compiled docs (#708) 2024-09-24 20:15:24 -07: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
5d6c16530f
downloadCargoPackageFromGit: set fetchLFS when an output hash is defined (#690) 2024-08-29 15:35:39 -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
Ivan Petkov
3f50200286
Update CHANGELOG 2024-08-22 16:02:43 -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
Simon Žlender
c873fd2ad8
Fix deeply nested registries (#676)
---------

Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-08-04 22:10:51 +00:00
Ivan Petkov
0aed560c5c
Update CHANGELOG 2024-07-05 17:41:47 -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
0095fd8ea0
removeReferencesToVendoredSources: handle cargoVendorDir not pointing to store (#646) 2024-06-15 17:55:13 +00: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
a21d14679f
Update cross compile example (#638)
* Sometimes we also need to set the TARGET_CC environment variable to
  allow cross compiling crates which also need to build a program to run
  on the build platform itself
2024-06-09 01:15:24 +00:00
Ivan Petkov
ad21f86e47
Drop support for nixpkgs-23.11 (#635) 2024-06-02 20:52:54 -07:00
Ivan Petkov
b65673fce9
Update CHANGELOG 2024-06-02 20:02:20 -07:00
Rebecca Turner
480dff0be0
Fix xargs signIfRequired (#631)
`signIfRequired` is a shell function, not an executable, so we can't
call it with `xargs`.

---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-05-29 23:24:23 +00:00
Ivan Petkov
19ca94ec2d
Update CHANGELOG 2024-05-26 10:49:12 -07:00
Ivan Petkov
35bc915249
cleanCargoToml: also clean variants using underscores (#626) 2024-05-26 17:41:17 +00:00
Ivan Petkov
701dbc191c
removeReferencesToVendoredSources: cache vendorDir crawling (#625)
There is no reason to repeatedly crawl the vendor directories for each
installed file, we can easily cache the results once up front.
2024-05-25 23:45:24 +00:00
Ivan Petkov
7443df1c47
Update CHANGELOG 2024-05-19 15:00:51 -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
a4e51f5755
Update CHANGELOG 2024-05-18 18:07:34 -07:00
Ivan Petkov
a7146b0440
flake: deprecate crane.lib.${system} (#617) 2024-05-19 01:07:07 +00:00
Ivan Petkov
5b0b062ff0
buildTrunkPackage: disable version checks by default (#616) 2024-05-19 00:06:59 +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
Ivan Petkov
c5ee4371ee
Update CHANGELOG 2024-05-04 10:07:24 -07:00
Ivan Petkov
276437b6bc
Update CHANGELOG 2024-05-04 10:06:45 -07:00
Ivan Petkov
d707d41f53
Update CHANGELOG 2024-05-04 10:02:30 -07:00
Ivan
3dda6d40ca
Fix bug with comment for inline table key (#583)
---------

Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-04-21 04:19:57 +00:00
Ivan Petkov
9caad1eb0c
Update CHANGELOG 2024-04-07 11:11:57 -07:00
Ivan Petkov
b47c4078b0
vendorCargoDeps: handle unused patch dependencies (#581) 2024-04-07 10:45:14 -07:00
Ivan Petkov
ada0fb4dcc
Add a warning if an unsupported version of nixpkgs is used (#571) 2024-03-29 03:09:12 +00:00
Ivan Petkov
270c7d60d3
inheritCargoArtifactsHook: correctly handle nested CARGO_TARGET_DIR (#561) 2024-03-22 23:32:09 +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
5bace74e9a
chore: update CHANGELOG 2024-03-19 15:17:23 -07: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