Commit graph

85 commits

Author SHA1 Message Date
Bas van Dijk
b7af218ef8 Add .circleci/config.yml 2019-10-08 11:10:28 +02:00
Nicolas Mattia
bf5b0ae9b0
Merge pull request #19 from nmattia/nm-forward-system
Forward system argument in tests
2019-10-08 10:47:48 +02:00
Nicolas Mattia
e3715ccf5f
Merge pull request #18 from basvandijk/remove-clang
Don't bring clang and LLVM into scope
2019-10-08 10:20:43 +02:00
Nicolas Mattia
4f1f7581f8 Forward system argument in tests 2019-10-08 10:19:35 +02:00
Bas van Dijk
d1b03d167c Don't bring clang and LLVM into scope 2019-10-08 09:53:28 +02:00
Nicolas Mattia
06af67108c Make tar non-verbose 2019-10-06 20:12:12 +02:00
Nicolas Mattia
99512691b4
Merge pull request #16 from nmattia/nm-cargo-release
Bunch of improvements
2019-09-22 17:26:32 +02:00
Nicolas Mattia
c7d2337880 Create logRun in configurePhase 2019-09-17 12:27:53 +02:00
Nicolas Mattia
6c072bd0ed Use cargo_release arg list for --release 2019-09-11 13:45:06 +02:00
Bas van Dijk
df0c276e7a Use the cargoTestCommands specified by the user for building the deps 2019-09-09 11:21:51 +02:00
Bas van Dijk
2791c3bd52 Use cargo build --out-dir instead of cargo install
Since we don't use cargo install anymore we go back to building the
workspace instead of building each crate separately.
2019-09-04 17:36:40 +02:00
Bas van Dijk
21850b632a Run cargo clippy for the deps 2019-09-04 12:15:15 +02:00
Bas van Dijk
e98ef6b715 Run cargoBuild and cargoTest per crate 2019-09-04 12:14:36 +02:00
Bas van Dijk
d7e6f3780f Disable building docs per crate because that's slower apparently
TODO: find out why this is the case.
2019-09-04 11:05:19 +02:00
Bas van Dijk
8e0af29278 Pass through the builtDependencies
So that it's easy to reference them which is handy during debugging.
2019-09-04 10:42:49 +02:00
Bas van Dijk
5c762ec61b Don't create $out/lib 2019-09-02 12:49:16 +02:00
Bas van Dijk
087f5bf3ea Don't copy to $out/lib 2019-08-30 20:24:13 +02:00
Bas van Dijk
b133123ee3 Document and install per crate 2019-08-30 18:25:40 +02:00
Nicolas Mattia
bf31162134 Fix TODO 2019-08-28 19:21:46 +02:00
Nicolas Mattia
51e8f903c4 Fix features rebuild 2019-08-28 19:21:13 +02:00
Nicolas Mattia
fc13d3d7b8 Fix rebuild on install 2019-08-28 11:20:40 +02:00
Nicolas Mattia
a2523f2a6c Fix tests on Linux 2019-08-28 10:48:28 +02:00
Bas van Dijk
5b148cf5ef
Merge pull request #13 from basvandijk/do-not-copyDocsToSeparateOutput-for-deps
Don't copy the docs to a separate doc output for the dependencies
2019-08-26 16:40:21 +02:00
Bas van Dijk
156328e941 Don't copy the docs to a separate doc output for the dependencies
In the deps derivation the docs are already contained in `target`
which is copied to `$out`. So in that case also copying the docs to a
separate `$doc` output wastes space. Only the final derivation should
have its docs in a separate `$doc` output.
2019-08-26 16:35:05 +02:00
Bas van Dijk
79822b7690
Merge pull request #12 from basvandijk/respect-release-profile-in-cargo-doc
Respect the release profile in cargo doc
2019-08-26 15:50:42 +02:00
Bas van Dijk
1845453377 Don't allow parameterization of cargoDoc 2019-08-26 15:39:06 +02:00
Bas van Dijk
f7a6150900 Respect the release profile in cargo doc 2019-08-26 15:13:56 +02:00
Nicolas Mattia
95cf3bb609
Merge pull request #11 from basvandijk/cargolock-cargotoml-via-file
Pass cargolock/cargotoml via file instead of via env var
2019-08-26 11:30:38 +02:00
Bas van Dijk
8d59785ca6 Pass cargolock/cargotoml via file instead of via env var
Apparently the cargolock env var can become too big so we replace it
with a file. This fixes the following error:

  building
  '/nix/store/s8bv90acizsyvh1s9gk7yvpiyw2gcpnx-dfinity-application-and-others-deps.drv'...
  while setting up the build environment: executing
  '/nix/store/cinw572b38aln37glr0zb8lxwrgaffl4-bash-4.4-p23/bin/bash':
  Argument list too long

See the following on the background of why env vars can become too big:
https://stackoverflow.com/questions/28865473/setting-environment-variable-to-a-large-value-argument-list-too-long
2019-08-26 11:05:41 +02:00
Nicolas Mattia
f4773e30aa
Merge pull request #10 from basvandijk/removeReferencesToSrcFromDocs
Remove references to the source code from the generated cargo docs
2019-08-23 16:29:37 +02:00
Bas van Dijk
39df9959ce Remove references to the source code from the generated cargo docs 2019-08-23 16:19:30 +02:00
Nicolas Mattia
8c939ae2d2
Merge pull request #7 from nmattia/nm-comparison
Add comparison to rustPlatform and carnix
2019-08-07 12:03:41 +02:00
Nicolas Mattia
0f5ed0edbf Add comparison to rustPlatform and carnix 2019-08-06 20:08:30 +02:00
Nicolas Mattia
5834403f4f
Merge pull request #4 from nmattia/nm-wip-3
Avoid IFD as much as possible
2019-08-02 11:00:30 +02:00
Nicolas Mattia
4d509c7633 Avoid IFD more 2019-07-31 16:16:51 +02:00
Nicolas Mattia
43bbee9b70 Fix cargo build 2019-07-31 15:54:51 +02:00
Nicolas Mattia
2692cfbfc1 Avoid IFD as much as possible 2019-07-31 15:53:30 +02:00
Nicolas Mattia
104df3fe88 Fixup toTOML 2019-07-31 15:07:16 +02:00
Nicolas Mattia
bdf64f6034 wip 2019-07-31 13:41:34 +02:00
Nicolas Mattia
773e7cb004 Build writeTOML and readTOML locally 2019-07-30 14:14:51 +02:00
Nicolas Mattia
7387010557 Improve incremental builds 2019-07-30 12:41:32 +02:00
Nicolas Mattia
afd2360b99 Disable doc in workspace test 2019-07-26 13:39:50 +02:00
Nicolas Mattia
d2b17ee4d3
Merge pull request #3 from basvandijk/add-cargo-doc-support
Add support for cargo doc
2019-07-16 15:03:20 +02:00
Bas van Dijk
4701ae2622 Add support for cargo doc 2019-07-16 14:43:32 +02:00
Nicolas Mattia
2d57092902
Merge pull request #2 from nmattia/nm-cleanup
Clean up and improve incremental builds
2019-07-11 11:42:54 +02:00
Nicolas Mattia
5888c8d9d6 Add README 2019-07-11 11:42:19 +02:00
Nicolas Mattia
4c2daf7ccd Fix workspaces 2019-07-11 11:39:40 +02:00
Nicolas Mattia
2432ecdd87 Implement hacky pre-building of deps for workspaces 2019-07-11 11:06:43 +02:00
Nicolas Mattia
4022afd8b9 Add support for prebuilt dependencies 2019-07-11 11:06:43 +02:00
Nicolas Mattia
9787ccbeee Clean up unused argument 2019-07-11 11:06:43 +02:00