gnu: opam: Unbundle dependencies.
* gnu/packages/ocaml.scm (opam)[build-system]: Use ocaml-build-system. [source]: Use unbundled sources. [arguments]: Update. [inputs, native-inputs, propagated-inputs]: Add missing dependencies.master
parent
ec9d932562
commit
e9b86fa0f1
|
@ -475,28 +475,28 @@ the opam file fomat.")
|
||||||
(name "opam")
|
(name "opam")
|
||||||
(version "2.0.3")
|
(version "2.0.3")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
;; Use the '-full' version, which includes all the dependencies.
|
(uri (git-reference
|
||||||
(uri (string-append
|
(url "https://github.com/ocaml/opam")
|
||||||
"https://github.com/ocaml/opam/releases/download/"
|
(commit version)))
|
||||||
version "/opam-full-" version ".tar.gz")
|
(file-name (git-file-name name version))
|
||||||
;; (string-append "https://github.com/ocaml/opam/archive/"
|
|
||||||
;; version ".tar.gz")
|
|
||||||
)
|
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1qphm1grxx5j8li7f9qfpih4ylrnjl08b4ym8ma4ln44l56xm285"))))
|
"151zvyijrapi805xm0j88ixlrhdbssfagxr2i1w25aagcd18n5y4"))))
|
||||||
(build-system gnu-build-system)
|
(build-system ocaml-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(;; Sometimes, 'make -jX' would fail right after ./configure with
|
`(#:configure-flags
|
||||||
;; "Fatal error: exception End_of_file".
|
(list (string-append "SHELL="
|
||||||
#:parallel-build? #f
|
(assoc-ref %build-inputs "bash")
|
||||||
|
"/bin/sh"))
|
||||||
|
|
||||||
;; For some reason, 'ocp-build' needs $TERM to be set.
|
;; For some reason, 'ocp-build' needs $TERM to be set.
|
||||||
#:make-flags `("TERM=screen"
|
#:make-flags
|
||||||
,(string-append "SHELL="
|
(list "TERM=screen"
|
||||||
(assoc-ref %build-inputs "bash")
|
(string-append "SHELL="
|
||||||
"/bin/sh"))
|
(assoc-ref %build-inputs "bash")
|
||||||
|
"/bin/sh"))
|
||||||
|
|
||||||
#:test-target "tests"
|
#:test-target "tests"
|
||||||
|
|
||||||
;; FIXME: There's an obscure test failure:
|
;; FIXME: There's an obscure test failure:
|
||||||
|
@ -522,12 +522,10 @@ the opam file fomat.")
|
||||||
;; isolated environment when building with opam.
|
;; isolated environment when building with opam.
|
||||||
;; This is necessary for packages to find external
|
;; This is necessary for packages to find external
|
||||||
;; dependencies, such as a C compiler, make, etc...
|
;; dependencies, such as a C compiler, make, etc...
|
||||||
(("^add_mounts ro /usr")
|
(("^add_sys_mounts /usr")
|
||||||
"add_mounts ro /gnu /run/current-system /usr"))
|
"add_sys_mounts /gnu /run/current-system /usr"))
|
||||||
(substitute* "src/client/opamInitDefaults.ml"
|
(substitute* "src/client/opamInitDefaults.ml"
|
||||||
(("\"bwrap\"") (string-append "\"" bwrap "\"")))
|
(("\"bwrap\"") (string-append "\"" bwrap "\"")))
|
||||||
;; Build dependencies
|
|
||||||
(apply invoke "make" "lib-ext" make-flags)
|
|
||||||
#t)))
|
#t)))
|
||||||
(add-before 'check 'pre-check
|
(add-before 'check 'pre-check
|
||||||
(lambda _
|
(lambda _
|
||||||
|
@ -536,7 +534,9 @@ the opam file fomat.")
|
||||||
(invoke "git" "config" "--global" "user.name" "Guix")
|
(invoke "git" "config" "--global" "user.name" "Guix")
|
||||||
#t)))))
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("git" ,git) ;for the tests
|
`(("dune" ,dune)
|
||||||
|
("git" ,git) ;for the tests
|
||||||
|
("ocaml-cppo" ,ocaml-cppo)
|
||||||
("python" ,python) ;for the tests
|
("python" ,python) ;for the tests
|
||||||
("camlp4" ,camlp4)))
|
("camlp4" ,camlp4)))
|
||||||
(inputs
|
(inputs
|
||||||
|
@ -544,6 +544,12 @@ the opam file fomat.")
|
||||||
("ncurses" ,ncurses)
|
("ncurses" ,ncurses)
|
||||||
("curl" ,curl)
|
("curl" ,curl)
|
||||||
("bubblewrap" ,bubblewrap)))
|
("bubblewrap" ,bubblewrap)))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("ocaml-cmdliner" ,ocaml-cmdliner)
|
||||||
|
("ocaml-dose3" ,ocaml-dose3)
|
||||||
|
("ocaml-mccs" ,ocaml-mccs)
|
||||||
|
("ocaml-opam-file-format" ,ocaml-opam-file-format)
|
||||||
|
("ocaml-re" ,ocaml-re)))
|
||||||
(home-page "http://opam.ocamlpro.com/")
|
(home-page "http://opam.ocamlpro.com/")
|
||||||
(synopsis "Package manager for OCaml")
|
(synopsis "Package manager for OCaml")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue