diff options
author | pjotrp | 2016-07-19 12:05:10 +0600 |
---|---|---|
committer | pjotrp | 2016-07-19 12:05:10 +0600 |
commit | 92c23e96ddb029e2c2e538346fc4e468e64ea61b (patch) | |
tree | daa9043f90dc8932652d00c8543c498d69e4c49c | |
parent | df1f20c93f9988acc8a433e9ed4b1be2a5579c84 (diff) | |
download | guix-bioinformatics-92c23e96ddb029e2c2e538346fc4e468e64ea61b.tar.gz |
Elixir tests pass (but not mix)
-rw-r--r-- | gn/packages/elixir.scm | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/gn/packages/elixir.scm b/gn/packages/elixir.scm index c1ff3e4..d477873 100644 --- a/gn/packages/elixir.scm +++ b/gn/packages/elixir.scm @@ -23,6 +23,7 @@ #:use-module (guix download) #:use-module (guix packages) #:use-module (gnu packages) + #:use-module (gnu packages base) ; for patch #:use-module (gnu packages erlang) #:use-module (gnu packages version-control)) @@ -39,22 +40,32 @@ (sha256 (base32 "0jsc6kl7f74yszcypdv3w3vhyc9qfqav8nwc41in082m0vpfy95y")) - (patches (list (search-patch "elixir-disable-failing-tests.patch"))))) + )) (build-system gnu-build-system) + (native-inputs + `(("patch" ,patch) + ("patch/disable-tests" ,(search-patch "elixir-disable-failing-tests.patch")))) (inputs `(("erlang" ,erlang) ("git" ,git))) (arguments `(#:phases (modify-phases %standard-phases (delete 'configure) - (replace 'check - (lambda _ - (zero? (system* "make" "test")))) (add-before 'build 'rewrite-path (lambda* (#:key inputs #:allow-other-keys) (substitute* "bin/elixir" - (("ERL_EXEC=\"erl\"") (string-append "ERL_EXEC=" (which "erl"))))))) + (("ERL_EXEC=\"erl\"") (string-append "ERL_EXEC=" (which "erl")))))) + (add-after 'build 'patch-elixir-tests ;; patching earlier breaks the build + (lambda* (#:key inputs #:allow-other-keys) + + + (zero? (system* "patch" "--force" "-p1" "-i" (assoc-ref inputs "patch/disable-tests") + )))) + + (replace 'check + (lambda _ + (zero? (system* "make" "test"))))) #:make-flags (list (string-append "PREFIX=" %output)) #:tests? #t)) ;; 3124 tests, 11 failures, 1 skipped |