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 gnu: rust: Factor out "cargo-utils" from "cargo-build-system". 2019-03-01 08:20:50 +01:00
clojure-build-system.scm build-system: Add 'clojure-build-system'. 2018-11-19 12:07:44 +01:00
clojure-utils.scm build-system: Add 'clojure-build-system'. 2018-11-19 12:07:44 +01:00
cmake-build-system.scm
compile.scm compile: Let compiler warnings through during the load phase. 2019-01-22 23:04:05 +01:00
cvs.scm
debug-link.scm
download-nar.scm Remove most uses of the _IO*F constants. 2019-01-09 14:47:53 +01:00
download.scm download: Ask not to use TLS 1.3. 2019-01-26 23:18:14 +01:00
dub-build-system.scm build-system/dub: Let all phases return #T unconditionally. 2018-11-13 10:46:00 +01:00
dune-build-system.scm guix: dune-build-system: Add a package parameter. 2019-03-23 22:58:52 +01:00
emacs-build-system.scm
emacs-utils.scm
font-build-system.scm
git.scm git-download: Use 'invoke'. 2019-01-06 00:22:05 +01:00
glib-or-gtk-build-system.scm
gnu-build-system.scm
gnu-dist.scm
go-build-system.scm build-system/go: Build with a filesystem union of Go dependencies. 2019-03-14 15:34:26 -04:00
graft.scm
gremlin.scm
guile-build-system.scm
haskell-build-system.scm build-system/haskell: Fix register phase. 2018-11-12 18:21:04 +01:00
hg.scm hg-fetch: Remove .hg directories of sub-repositories. 2018-12-03 12:29:08 +01:00
java-utils.scm java-utils: Use 'strip-store-file-name'. 2018-10-19 23:11:07 +02:00
lisp-utils.scm
make-bootstrap.scm Remove most uses of the _IO*F constants. 2019-01-09 14:47:53 +01:00
meson-build-system.scm
minify-build-system.scm
ocaml-build-system.scm build-system/ocaml: Use invoke and return #t. 2018-11-18 18:40:53 +01:00
perl-build-system.scm
profiles.scm profiles: Allow a profile to be added as an entry of another profile. 2019-01-20 01:42:11 +01:00
python-build-system.scm
qt-utils.scm
r-build-system.scm
rakudo-build-system.scm build: Add rakudo-build-system. 2019-03-23 22:26:48 +02:00
rpath.scm
ruby-build-system.scm
scons-build-system.scm
store-copy.scm store-copy: Canonicalize the mtime and permissions of the store copy. 2018-11-06 23:21:24 +01:00
svn.scm
syscalls.scm syscalls: 'device-in-use?' returns #f upon EINVAL. 2019-01-17 14:04:28 +01:00
texlive-build-system.scm build-system: texlive: Do not hide build output. 2019-01-10 22:43:09 +01:00
union.scm Remove most uses of the _IO*F constants. 2019-01-09 14:47:53 +01:00
utils.scm
waf-build-system.scm