guix-devel/guix
Ivan Petkov 1d3acde508
build-system/cargo: refactor phases to successfully build
* guix/build-system/cargo.scm (%cargo-build-system-modules):
Add (json parser).
(cargo-build):
[vendor-dir]: Define flag and pass it to builder code.
[cargo-test-flags]: Likewise.
[skip-build?]: Likewise.
* guix/build/cargo-build/system.scm (#:use-module): use (json parser).
(package-name->crate-name): Delete it.
(manifest-targets): Add it.
(has-executable-target?): Add it.
(configure): Add #:vendor-dir name and use it.
Don't touch Cargo.toml.
Don't symlink to duplicate inputs.
Remove useless registry line from cargo config.
Define RUSTFLAGS to lift lint restrictions.
(build): Add #:skip-build? flag and use it.
(check): Likewise.
Add #:cargo-test-flags and pass it to cargo.
(install): Factor source logic to install-source.
Define #:skip-build? flag and use it.
Only install if executable targets are present.
(install-source): Copy entire crate directory not just src.
[generate-checksums] pass dummy file for unused second argument.
(%standard-phases): Add install-source phase.

Signed-off-by: Chris Marusich <cmmarusich@gmail.com>
2019-04-09 03:09:00 -07:00
..
build build-system/cargo: refactor phases to successfully build 2019-04-09 03:09:00 -07:00
build-system build-system/cargo: refactor phases to successfully build 2019-04-09 03:09:00 -07:00
import import: opam: Also update dune packages. 2019-03-23 18:37:29 +01:00
scripts size: Optimize dependency size computation. 2019-04-07 11:36:00 +02:00
store database: Make 'register-items' transactional. 2019-03-07 00:00:18 +01:00
tests
base16.scm
base32.scm
base64.scm
build-system.scm
cache.scm
channels.scm channels: Do not fail when the inferior lacks 'guix repl'. 2019-03-08 12:31:38 +01:00
ci.scm
combinators.scm
config.scm.in
cpio.scm
cve.scm
cvs-download.scm
deprecation.scm
derivations.scm
describe.scm describe: Add 'current-profile-date'. 2019-03-17 22:55:01 +01:00
discovery.scm
docker.scm
download.scm download: Add MATE mirrors. 2019-03-15 13:05:08 -04:00
elf.scm
ftp-client.scm
gexp.scm gexp: 'compiled-modules' loads modules before compiling them. 2019-04-04 17:47:02 +02:00
git-download.scm
git.scm
glob.scm
gnu-maintenance.scm
gnupg.scm
grafts.scm
graph.scm
hg-download.scm
http-client.scm
i18n.scm
inferior.scm channels: Do not fail when the inferior lacks 'guix repl'. 2019-03-08 12:31:38 +01:00
licenses.scm licenses: Remove 'bsd-style'. 2019-04-08 10:42:51 +02:00
man-db.scm
memoization.scm
modules.scm Remove traces of "GuixSD". 2019-03-13 23:12:43 +01:00
monad-repl.scm
monads.scm
nar.scm
packages.scm gexp: 'compiled-modules' loads modules before compiling them. 2019-04-04 17:47:02 +02:00
pki.scm
profiles.scm
profiling.scm
progress.scm
records.scm records: Support custom 'this' identifiers. 2019-03-30 11:08:39 +01:00
scripts.scm scripts: Skip 'guix pull' suggestion when running code from a checkout. 2019-03-27 11:54:06 +01:00
search-paths.scm
self.scm self: Ship all the (gnu bootloader …) modules. 2019-04-03 18:21:43 +02:00
serialization.scm
sets.scm
ssh.scm
status.scm
store.scm
svn-download.scm
swh.scm
tests.scm tests: Add 'with-environment-variable'. 2019-03-16 18:15:09 +01:00
ui.scm ui: Bypass Texinfo parsing and rendering for searches. 2019-03-24 00:13:53 +01:00
upstream.scm refresh: Update the source code URL. 2019-03-27 14:59:42 +01:00
utils.scm
workers.scm
zlib.scm