aboutsummaryrefslogtreecommitdiff
path: root/guix/build-system
diff options
context:
space:
mode:
authorDavid Craven <david@craven.ch>2016-12-29 16:29:24 +0100
committerDavid Craven <david@craven.ch>2017-01-01 18:20:52 +0100
commitf1d136957d0d5634e60e5389a046a917169cdb9e (patch)
tree83929a1d557fdcd8662ff3f442009d38b71b6281 /guix/build-system
parentf53a5514e0e9535d2e7c668803e64b4aac17da2b (diff)
downloadgnu-guix-f1d136957d0d5634e60e5389a046a917169cdb9e.tar
gnu-guix-f1d136957d0d5634e60e5389a046a917169cdb9e.tar.gz
build-system: cargo: Handle Cargo.lock file not present.
* guix/build-system/cargo.scm (cargo-build): Add src output. (private-keywords): Add #:outputs. * guix/build/cargo-build-system.scm (configure): Use /share/rust-source when replacing inputs. (build, check): Don't do anything when there isn't a Cargo.lock file present. (install): Install sources to src output. When a Cargo.lock file is present use cargo install to install binaries to out. * guix/import/crate.scm (make-crate-sexp): Importer uses the src output for crate inputs by default. * guix/import/utils.scm (package-names->package-inputs, maybe-inputs, maybe-native-inputs): Take an optional output argument. * tests/crate.scm (crate->guix-package test): Update. Problem reported by Francisco Gómez García <espectalll@kydara.com>.
Diffstat (limited to 'guix/build-system')
-rw-r--r--guix/build-system/cargo.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/build-system/cargo.scm b/guix/build-system/cargo.scm
index 8d835dda1d..ffc0afda3b 100644
--- a/guix/build-system/cargo.scm
+++ b/guix/build-system/cargo.scm
@@ -109,7 +109,7 @@ to NAME and VERSION."
#:inputs inputs
#:system system
#:modules imported-modules
- #:outputs outputs
+ #:outputs (cons "src" outputs)
#:guile-for-build guile-for-build))
(define* (lower name
@@ -121,7 +121,7 @@ to NAME and VERSION."
"Return a bag for NAME."
(define private-keywords
- '(#:source #:target #:cargo #:rustc #:inputs #:native-inputs))
+ '(#:source #:target #:cargo #:rustc #:inputs #:native-inputs #:outputs))
(and (not target) ;; TODO: support cross-compilation
(bag