Commit Graph

330 Commits

Author SHA1 Message Date
Ivan Petkov
953b70da28
Update CHANGELOG 2023-02-19 14:46:28 -08:00
Ivan Petkov
d777dbc167
mkDummySrc: avoid invalidation if the source name has two hashes (#248) 2023-02-19 22:43:11 +00:00
Ivan Petkov
34633dd0d7
buildDepsOnly: warn if both src and dummySrc are set (#247) 2023-02-19 17:46:57 +00:00
Ivan Petkov
cfb6efcfc7
Update flake.lock (#238)
flake.lock: Update

Flake lock file updates:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02)
  → 'github:numtide/flake-utils/3db36a8b464d0c4532ba1c7dda728f4576d6d073' (2023-02-13)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/006c3bd4dd2f5d1d2094047f307cbf9e2b73d9c5' (2023-02-02)
  → 'github:NixOS/nixpkgs/6d33e5e14fd12f99ba621683ae90cebadda753ca' (2023-02-15)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/383a4acfd11d778d5c2efcf28376cbd845eeaedf' (2023-02-03)
  → 'github:oxalica/rust-overlay/a619538647bd03e3ee1d7b947f7c11ff289b376e' (2023-02-15)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-16 02:44:59 +00:00
Ivan Petkov
6fb400ec63
crateNameFromCargoToml: warn when values can't be found (#237) 2023-02-12 00:39:43 +00:00
Ivan Petkov
c6b5c57cfb
Update CHANGELOG 2023-02-11 15:46:00 -08:00
Felix Schröter
2b866abbdd
ignore non-json lines in cargoBuildLog (#234)
Fixes issues with non-json values in cargoBuildLog: rust-lang/cargo#8179
---------

Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2023-02-11 13:27:11 -08:00
Ivan Petkov
8c34e5ecad
docs: Clarify docs and add example of setting custom environment variable (#233)
Clarify docs and add example of setting custom environment variable
2023-02-09 00:27:05 +00:00
Ivan Petkov
972ef2af69
ci: bump to cachix/install-nix-action@19 (#231)
* By default the GITHUB_TOKEN is set as an access token (to avoid rate
  limiting) so we don't have to do it explicitly
2023-02-08 00:03:11 +00:00
Ivan Petkov
7e2e5b3cc1
chore: bump all Cargo.lock files (#230) 2023-02-07 23:47:42 +00:00
dependabot[bot]
1bde9c762e
chore(deps): bump tokio from 1.24.1 to 1.25.0 in /examples/cross-rust-overlay (#229) 2023-02-04 01:58:44 +00:00
Ivan Petkov
9aebc95cd1
Update flake.lock (#228) 2023-02-03 11:09:34 -08:00
dependabot[bot]
013614dd50
chore(deps): bump DeterminateSystems/update-flake-lock from 15 to 16 (#227)
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 15 to 16.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v15...v16)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 23:54:33 +00:00
Ivan Petkov
ccea7b3317
Update CHANGELOG 2023-01-21 16:50:49 -08:00
Ivan Petkov
a41a7d3f81
Update docs to clarify buildPackage installation behavior (#225) 2023-01-22 00:50:20 +00:00
Ivan Petkov
00564437f3
Properly handle workspace inheritance in git dependencies (#224)
Crates from git repos are vendored in a flattened directory where each crate shows up at the root of the vendor directory. Since the vendoring step effectively breaks workspace structures, any crates which use workspace inheritance (e.g. package.version.workspace = true will fail to resolve.

To work around this we inspect the crate's workspace manifest (if it exists) and attempt to manually merge the values while copying the contents to the vendor directory.
2023-01-21 16:46:32 -08:00
Ivan Petkov
b13963c8c1
chore: bump some git deps in Cargo.locks (#221) 2023-01-11 02:57:33 +00:00
Ivan Petkov
0144134311
chore: bump all Cargo.locks (#219) 2023-01-07 01:47:45 +00:00
Ivan Petkov
ea3a813939
examples: add cross-windows (#218)
* ci: disable running examples
2023-01-07 01:11:42 +00:00
dependabot[bot]
da51c58712
chore(deps): bump tokio from 1.18.0 to 1.24.1 in /examples/cross-rust-overlay (#217) 2023-01-06 22:52:29 +00:00
Ivan Petkov
cb0c042a27
docs: make example code for nested workspaces more universal (#215) 2023-01-06 03:07:21 +00:00
Ivan Petkov
472617f66c
Update PR template 2023-01-05 17:18:49 -08:00
Ivan Petkov
6e7e53616b
docs: fix example for sandbox unfriendly dependency workaround (#214) 2023-01-06 01:16:16 +00:00
Ivan Petkov
42e2fab6bc
Make it easier to build workspaces not at source root (#212) 2023-01-05 04:46:43 +00:00
Ivan Petkov
dfe3afcdd9
Update docs (#211)
* add section on source filtering
* add FAQ about `include_str!`
* add section about sandbox-unfriendly build scripts
2023-01-04 19:06:37 -08:00
Ivan Petkov
ec10516aad
Update flake.lock (#208) 2023-01-04 06:30:57 +00:00
Ivan Petkov
cc20f29b4a
ci: pass GITHUB_TOKEN as an access token in more places 2023-01-03 19:52:45 -08:00
Ivan Petkov
18ef99b1e0
inheritCargoArtifactsHook: preserve executable bit of build scripts (#206)
Using `cp --no-preserve mode` ends up losing the executable bit of
previously compiled build scripts. Instead we should ignore the file
ownership, and subsequently make the files writable (since the store is
read only)
2023-01-04 02:53:38 +00:00
Ivan Petkov
98894bb39b
Update CHANGELOG 2022-12-26 15:01:01 -08:00
Ivan Petkov
755e604b79
book: fix references 2022-12-26 14:55:25 -08:00
Ivan Petkov
55a143e9a8
book: add CNAME 2022-12-26 14:37:04 -08:00
Ivan Petkov
a4d70a26e7
Add Crane book (#199) 2022-12-26 14:27:13 -08:00
Ivan Petkov
67b1799c33
README: add a comment about setting pname 2022-12-26 08:59:37 -08:00
Ivan Petkov
eae8252b68
README: add FAQ about building workspace subsets (#198) 2022-12-26 02:07:23 +00:00
Ivan Petkov
8b66edc016
mkDummySource: fix build invalidation regression (#195)
* When checking the original source for its name, make sure we throw
  away the string context so we don't end up actually depending on the
  original source instead of the cleaned one
2022-12-23 17:06:58 +00:00
Ivan Petkov
70fcce8db0
mkDummySrc: try to use the same output name as original source (#190) 2022-12-20 20:50:22 -08:00
Mitch Tishmack
59b31b41a5
Add buildInputs to quick-start doc (#185) 2022-12-12 18:54:27 -08:00
Ivan Petkov
63f80ee278
zstd: use as many threads as we can when compressing (#183) 2022-12-09 00:44:41 +00:00
Ivan Petkov
2243fb9c87
Update flake.lock (#181)
flake.lock: Update

Flake lock file updates:

• Updated input 'flake-compat':
    'github:edolstra/flake-compat/b4a34015c698c7793d592d66adbab377907a2be8' (2022-04-19)
  → 'github:edolstra/flake-compat/009399224d5e398d03b22badca40a37ac85412a1' (2022-11-17)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/ef2f213d9659a274985778bff4ca322f3ef3ac68' (2022-11-01)
  → 'github:NixOS/nixpkgs/49b8ad618e64d9fe9ab686817bfebe047860dcae' (2022-12-03)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/cf668f737ac986c0a89e83b6b2e3c5ddbd8cf33b' (2022-11-03)
  → 'github:oxalica/rust-overlay/a0d5773275ecd4f141d792d3a0376277c0fc0b65' (2022-12-03)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-05 15:59:37 -08:00
Ivan Petkov
ea271bdc05
ci: test against 22.11 and stop testing 22.05 (#179) 2022-12-01 20:12:55 -08:00
Ivan Petkov
fb80a689c5
Update CHANGELOG 2022-12-01 17:08:20 -08:00
dependabot[bot]
ed59895b7a
chore(deps): bump DeterminateSystems/update-flake-lock from 14 to 15 (#178) 2022-12-01 22:40:42 +00:00
Ivan Petkov
0428181b7b
cleanCargoSource: fix documentation typo (#177) 2022-12-01 00:14:59 +00:00
Ivan Petkov
24591d5f8c
ci: pass in GITHUB_TOKEN to avoid being rate-limited 2022-11-27 19:24:42 -08:00
Ivan Petkov
2b0be4c1c4
mkDummySrc: work with uefi targets by default, and allow downstream customization (#174)
* mkDummySrc: also include `no_std` attrs for target_os = uefi
* buildDepsOnly: only check with `--all-targets` if doCheck enabled
* mkDummySrc: allow customizing dummy Rust file contents
2022-11-28 03:23:35 +00:00
Ivan Petkov
c61d98aaea
mkDummySrc: properly import core (#172) 2022-11-21 01:12:39 +00:00
Ivan Petkov
700c0fa21f
Ignore blame from fmt revision 2022-11-20 16:31:44 -08:00
Ivan Petkov
35fd8fcbb0
Run nixpkgs-fmt 2022-11-20 16:28:49 -08:00
Ivan Petkov
e80de1e74a
Allow passing arbitrary fetchurl args per registry (#168)
Co-authored-by: Amos Wenger <amoswenger@gmail.com>
2022-11-20 16:22:13 -08:00
Ivan Petkov
acbb22591c
ci: enable building examples with macOS (#170) 2022-11-19 16:08:15 -08:00