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 gnu: android-make-stub: Update to 0.6.0. 2018-05-10 15:35:28 +02:00
ant.scm guix: ant-build-system: Add #:test-include and #:test-exclude arguments. 2017-10-03 21:38:23 +02:00
asdf.scm build-system/asdf: 'package-with-build-system' accesses inputs lazily. 2019-01-09 15:01:40 +01:00
cargo.scm build-system/cargo: refactor phases to successfully build 2019-04-09 03:09:00 -07:00
clojure.scm build-system: clojure-build-system: Fix %default-clojure location. 2018-11-24 16:25:55 +01:00
cmake.scm build-system/cmake: Add support for cross compilation. 2017-05-30 16:52:55 +02:00
dub.scm Adjust all users of (gnu packages ldc) to use (gnu packages dlang). 2018-09-10 15:44:32 -04:00
dune.scm guix: dune-build-system: Add a package parameter. 2019-03-23 22:58:52 +01:00
emacs.scm build-system: emacs: Add improved check phase. 2018-04-20 00:49:53 +05:30
font.scm gnu: Move contents of zip module into compression module. 2017-06-20 18:10:35 +05:30
glib-or-gtk.scm build-system/glib-or-gtk: Support #:disallowed-references. 2019-03-15 23:27:58 +01:00
gnu.scm build-system/gnu: Check whether the cross-libc has a "static" output. 2017-12-21 10:46:24 +01:00
go.scm build-system/go: Build with a filesystem union of Go dependencies. 2019-03-14 15:34:26 -04:00
guile.scm build-system: Add 'guile-build-system'. 2018-07-23 12:25:31 +02:00
haskell.scm build-system: haskell: Add #:cabal-revision argument. 2018-10-01 12:12:08 +02:00
meson.scm build-system/meson: Add #:allowed-references and #:disallowed-references. 2019-03-21 19:23:47 +01:00
minify.scm build-system: minify: Do not import (ice-9 popen) in the build environment. 2018-03-12 15:14:01 +01:00
ocaml.scm build: Add dune-build-system. 2018-12-18 22:16:23 +01:00
perl.scm Move search path specifications to (guix search-paths). 2015-05-04 23:30:51 +02:00
python.scm gnu: Use pypi.org. 2018-10-18 23:46:33 -04:00
r.scm guix: Update to Bioconductor 3.8. 2018-11-06 18:21:24 +01:00
rakudo.scm build: Add rakudo-build-system. 2019-03-23 22:26:48 +02:00
ruby.scm build: ruby: Rewrite build system to use gem archives. 2015-08-18 17:58:13 -04:00
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 build-system/trivial: Add support for #:allowed-references. 2018-02-28 22:47:42 +01:00
waf.scm Move search path specifications to (guix search-paths). 2015-05-04 23:30:51 +02:00