guix-devel/guix/build-system
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.scm
ant.scm
asdf.scm
cargo.scm build-system/cargo: refactor phases to successfully build 2019-04-09 03:09:00 -07:00
clojure.scm
cmake.scm
dub.scm
dune.scm guix: dune-build-system: Add a package parameter. 2019-03-23 22:58:52 +01:00
emacs.scm
font.scm
glib-or-gtk.scm build-system/glib-or-gtk: Support #:disallowed-references. 2019-03-15 23:27:58 +01:00
gnu.scm
go.scm build-system/go: Build with a filesystem union of Go dependencies. 2019-03-14 15:34:26 -04:00
guile.scm
haskell.scm
meson.scm build-system/meson: Add #:allowed-references and #:disallowed-references. 2019-03-21 19:23:47 +01:00
minify.scm
ocaml.scm
perl.scm
python.scm
r.scm
rakudo.scm build: Add rakudo-build-system. 2019-03-23 22:26:48 +02:00
ruby.scm
scons.scm guix: scons: Fix module reference. 2019-01-15 18:15:07 +01:00
texlive.scm gnu: Update texlive packages. 2019-01-10 22:43:09 +01:00
trivial.scm
waf.scm