Commit Graph

20 Commits

Author SHA1 Message Date
Ivan Petkov
442a7a6152
crane-utils: bump dependencies (#609) 2024-05-04 23:12:35 +00: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
1e44708c0b
chore: bump crane-utils deps (#580) 2024-04-05 20:48:03 +00:00
Ivan Petkov
f23ae17543
crane-utils: fix workspace dependency merge when it is not a table (#529) 2024-02-21 16:00:58 -08:00
Ivan Petkov
c5a3c5dac3
crane-utils: bump dependencies (#508) 2024-01-28 19:22:09 +00:00
Ivan Petkov
960d350770
vendorCargoDeps: manually splice packages to avoid cross build issues (#507)
* Source vendoring is passed as a standalone attribute to
  `mkCargoDerivation`, meaning it does not automagically get spliced
  with the correct local/cross system inputs (i.e. what would happen if
  it was a `depsBuildBuild` entry)
* To fix this we need to make sure that `vendorCargoDeps` and all of its
  transitive dependencies always use `runCommand` (and friends) from
  their `pkgsBuildBuild` equivalent. This should always be safe to do
  (even for cross-builds) since this amounts to building up a bunch of
  sources which will be read by the build system
* Unfortunately I had to manually specify `pkgsBuildBuild.whatever` in
  multiple places as I could not get things to work by messing with the
  `callPackage` definition. Perhaps we should be using
  `makeScopeWithSplicing'` instead of `makeScope` when constructing the
  library, but I couldn't get it working (and I couldn't find any decent
  docs on how to use it online) so this will make do for the time being.
2024-01-28 19:08:44 +00:00
Ivan Petkov
7814285d01
chore: bump all cargo deps (#504) 2024-01-27 03:58:59 +00:00
Roman Volosatovs
33dbb6a834
feat: support workspace lints (#481)
---------

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2023-12-13 17:22:10 +00:00
Ivan Petkov
159f71f4f0
craneUtils: build with rustPlatform (#431)
* This should hopefully result in fewer surprises if someone is using a
  really ancient toolchain for their code since we'll use whatever is in
  nixpkgs to build craneUtils instead
2023-10-17 00:12:57 +00:00
Ivan Petkov
117ac48319
chore: update all test deps (#420) 2023-10-13 02:57:37 +00:00
danjl1100
03e442fb3d
Replace toml dependency with toml_edit to preserve comments (#407)
---------

Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2023-10-01 20:54:37 +00:00
Ivan Petkov
ff2e879b26
update all Cargo.locks (#364)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/4a56ce9727a0c5478a836a0d8a8f641c5b9a3d5f' (2023-08-02)
  → 'github:NixOS/nixpkgs/5068bc8fe943bde3c446326da8d0ca9c93d5a682' (2023-08-07)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/99df4908445be37ddb2d332580365fce512a7dcf' (2023-08-03)
  → 'github:oxalica/rust-overlay/b520a3889b24aaf909e287d19d406862ced9ffc9' (2023-08-07)
2023-08-11 00:13:17 +00:00
Hung Tran
4d350bb94f
deps: update cargo-utils dependencies, should fix builds from nightly rust (#346)
---------

Co-authored-by: htran <htran@egihosting.com>
2023-06-29 16:51:22 -07:00
Ivan Petkov
54b63c8eae
chore: update all Cargo.locks (#304) 2023-04-16 21:28:36 +00:00
Ivan Petkov
72fa29510a
chore: bump all Cargo.locks (#280) 2023-03-26 06:21:21 +00:00
Ivan Petkov
6fd78bc66a
Add path as a convenience wrapper around builtins.path (#273) 2023-03-19 20:57:15 -07:00
Roman Volosatovs
56b875b6eb
fix: target workspace dependency resolution (#265) 2023-03-19 12:47:29 -07: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
7e2e5b3cc1
chore: bump all Cargo.lock files (#230) 2023-02-07 23:47:42 +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