Archived
1
0
Fork 0

gnu: dezyne: Use new package style.

* gnu/packages/dezyne.scm (dezyne)[arguments]: Convert to list of
G-Expressions.
[inputs]: Drop labels.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2022-05-06 15:54:13 +02:00
parent 83c1f017a6
commit 0e9429544f
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -20,6 +20,7 @@
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix download) #:use-module (guix download)
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix gexp)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (gnu packages base) #:use-module (gnu packages base)
#:use-module (gnu packages bash) #:use-module (gnu packages bash)
@ -38,70 +39,71 @@
name "-" version ".tar.gz")) name "-" version ".tar.gz"))
(sha256 (sha256
(base32 "1sh9chg5q10c3bzsmgl1pb7pmdf04j2lqszhw8jk5qlxr9y8ybcq")))) (base32 "1sh9chg5q10c3bzsmgl1pb7pmdf04j2lqszhw8jk5qlxr9y8ybcq"))))
(inputs `(("bash" ,bash-minimal) (inputs (list bash-minimal
("guile" ,guile-3.0-latest) guile-3.0-latest
("guile-json" ,guile-json-4) guile-json-4
("guile-readline" ,guile-readline) guile-readline
("mcrl2" ,mcrl2-minimal) mcrl2-minimal
("sed" ,sed))) sed))
(native-inputs (list guile-3.0-latest pkg-config)) (native-inputs (list guile-3.0-latest pkg-config))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:modules ((ice-9 popen) (list
#:modules `((ice-9 popen)
,@%gnu-build-system-modules) ,@%gnu-build-system-modules)
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'disable-tests (add-after 'unpack 'disable-tests
(lambda _ (lambda _
;; The mCRL2 output for these tests is unstable, i.e., varies ;; The mCRL2 output for these tests is unstable, i.e., varies
;; between different builds. ;; between different builds.
(substitute* "Makefile.in" (substitute* "Makefile.in"
(("test/all/compliance_blocking_double_release ") " ") (("test/all/compliance_blocking_double_release ") " ")
(("test/all/illegal_external_nonsynchronous ") " ") (("test/all/illegal_external_nonsynchronous ") " ")
(("test/all/livelock_synchronous_illegal ") " ") (("test/all/livelock_synchronous_illegal ") " ")
(("test/all/queuefull_external_sync ") " ")))) (("test/all/queuefull_external_sync ") " "))))
(add-before 'configure 'setenv (add-before 'configure 'setenv
(lambda _ (lambda _
(setenv "GUILE_AUTO_COMPILE" "0"))) (setenv "GUILE_AUTO_COMPILE" "0")))
(add-after 'install 'install-readmes (add-after 'install 'install-readmes
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(base (string-append ,name "-" ,version)) (base (string-append #$name "-" #$version))
(doc (string-append out "/share/doc/" base))) (doc (string-append out "/share/doc/" base)))
(mkdir-p doc) (mkdir-p doc)
(copy-file "NEWS" (string-append doc "/NEWS"))))) (copy-file "NEWS" (string-append doc "/NEWS")))))
(add-after 'install 'wrap-binaries (add-after 'install 'wrap-binaries
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(bash (assoc-ref %build-inputs "bash")) (bash (assoc-ref %build-inputs "bash-minimal"))
(guile (assoc-ref %build-inputs "guile")) (guile (assoc-ref %build-inputs "guile"))
(json (assoc-ref %build-inputs "guile-json")) (json (assoc-ref %build-inputs "guile-json"))
(mcrl2 (assoc-ref %build-inputs "mcrl2")) (mcrl2 (assoc-ref %build-inputs "mcrl2-minimal"))
(readline (assoc-ref %build-inputs "guile-readline")) (readline (assoc-ref %build-inputs "guile-readline"))
(sed (assoc-ref %build-inputs "sed")) (sed (assoc-ref %build-inputs "sed"))
(effective (read (effective (read
(open-pipe* OPEN_READ (open-pipe* OPEN_READ
"guile" "-c" "guile" "-c"
"(write (effective-version))"))) "(write (effective-version))")))
(path (list (string-append bash "/bin") (path (list (string-append bash "/bin")
(string-append guile "/bin") (string-append guile "/bin")
(string-append mcrl2 "/bin") (string-append mcrl2 "/bin")
(string-append sed "/bin"))) (string-append sed "/bin")))
(scm-dir (string-append "/share/guile/site/" effective)) (scm-dir (string-append "/share/guile/site/" effective))
(scm-path (scm-path
(list (string-append out scm-dir) (list (string-append out scm-dir)
(string-append json scm-dir) (string-append json scm-dir)
(string-append readline scm-dir))) (string-append readline scm-dir)))
(go-dir (string-append "/lib/guile/" effective (go-dir (string-append "/lib/guile/" effective
"/site-ccache/")) "/site-ccache/"))
(go-path (list (string-append out go-dir) (go-path (list (string-append out go-dir)
(string-append json go-dir) (string-append json go-dir)
(string-append readline go-dir)))) (string-append readline go-dir))))
(wrap-program (string-append out "/bin/dzn") (wrap-program (string-append out "/bin/dzn")
`("PATH" ":" prefix ,path) `("PATH" ":" prefix ,path)
`("GUILE_AUTO_COMPILE" ":" = ("0")) `("GUILE_AUTO_COMPILE" ":" = ("0"))
`("GUILE_LOAD_PATH" ":" prefix ,scm-path) `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
`("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path)))))))) `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path))))))))
(synopsis "Programming language with verifyable formal semantics") (synopsis "Programming language with verifyable formal semantics")
(description "Dezyne is a programming language and a set of tools to (description "Dezyne is a programming language and a set of tools to
specify, validate, verify, simulate, document, and implement concurrent specify, validate, verify, simulate, document, and implement concurrent