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
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
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
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 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
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
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