guix-devel/guix/build
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
..
android-ndk-build-system.scm
ant-build-system.scm
asdf-build-system.scm
bournish.scm
cargo-build-system.scm build-system/cargo: refactor phases to successfully build 2019-04-09 03:09:00 -07:00
cargo-utils.scm
clojure-build-system.scm
clojure-utils.scm
cmake-build-system.scm
compile.scm
cvs.scm
debug-link.scm
download-nar.scm
download.scm
dub-build-system.scm
dune-build-system.scm
emacs-build-system.scm
emacs-utils.scm
font-build-system.scm
git.scm
glib-or-gtk-build-system.scm
gnu-build-system.scm
gnu-dist.scm
go-build-system.scm
graft.scm
gremlin.scm
guile-build-system.scm
haskell-build-system.scm
hg.scm
java-utils.scm
lisp-utils.scm
make-bootstrap.scm
meson-build-system.scm
minify-build-system.scm
ocaml-build-system.scm
perl-build-system.scm
profiles.scm
python-build-system.scm
qt-utils.scm
r-build-system.scm
rakudo-build-system.scm
rpath.scm
ruby-build-system.scm
scons-build-system.scm
store-copy.scm
svn.scm
syscalls.scm
texlive-build-system.scm
union.scm
utils.scm
waf-build-system.scm