Commit graph

345 commits

Author SHA1 Message Date
Bas van Dijk
0e700a5c16
Merge pull request #24 from basvandijk/remove-build-scripts-during-dummyfication
Remove build scripts during dummyfication
2019-10-09 16:35:15 +02:00
Bas van Dijk
a9cade2ca2 Remove build scripts during dummyfication
Otherwise builds fail with an error like:

Compiling simple-dep v0.1.0 (/private/var/folders/5h/b11m6fxj2tqgbxwz5bgjy42c0000gn/T/nix-build-some-name.drv-0/dummy-src)
error: couldn't read build.rs: No such file or directory (os error 2)
2019-10-09 16:33:27 +02:00
Nicolas Mattia
e344a3a480
Merge pull request #23 from nmattia/nm-fix-cargotomls
Properly fixup cargo tomls for dep build
2019-10-09 11:47:04 +02:00
Nicolas Mattia
566c70a395 Properly fixup cargo tomls for dep build 2019-10-09 10:37:22 +02:00
Nicolas Mattia
c006f86e9d Add tests for binaries 2019-10-09 10:34:29 +02:00
Nicolas Mattia
0b89694709 Cleanup 2019-10-09 10:34:16 +02:00
Nicolas Mattia
02f4e34a2b
Merge pull request #21 from nmattia/nm-fix-tests
Fix tests
2019-10-08 11:20:59 +02:00
Nicolas Mattia
933c81beaa Disable failing tests 2019-10-08 11:20:30 +02:00
Nicolas Mattia
f61d6f441a Use rust stable 2019-10-08 11:20:30 +02:00
Bas van Dijk
caf3bb63dd
Merge pull request #20 from basvandijk/add-circle-ci
Add .circleci/config.yml
2019-10-08 11:13:27 +02:00
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