Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (use-modules (gnu packages autotools)
- (gnu packages avahi)
- (gnu packages boost)
- (gnu packages commencement)
- (gnu packages cmake)
- (gnu packages gettext)
- (gnu packages gcc)
- (gnu packages graphics)
- (gnu packages java)
- (gnu packages m4)
- (gnu packages maths)
- (gnu packages mpi)
- (gnu packages perl)
- (gnu packages pkg-config)
- (gnu packages python)
- (gnu packages qt)
- (gnu packages readline)
- (gnu packages xml)
- (guix build-system gnu)
- (guix git-download)
- ((guix licenses) #:prefix license:)
- (guix packages))
- (define-public openmodelica
- (package
- (name "openmodelica")
- (version "1.13.2")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/OpenModelica/OpenModelica.git")
- (commit (string-append "v" version))
- (recursive? #t)))
- (file-name (git-file-name name version))
- (sha256
- (base32 "12ax293w46b6l5kvb6yayahn8f6gkaiqbgaj83n9hxa1zjxrcpn1"))))
- (build-system gnu-build-system)
- (arguments
- '(#:configure-flags
- (list (string-append "CC=gcc -I"
- (assoc-ref %build-inputs "libxml2")
- "/include/libxml2")
- (string-append "CXX=g++ -std=c++11 -I"
- (assoc-ref %build-inputs "libxml2")
- "/include/libxml2")
- (string-append "CPPFLAGS=-I"
- (assoc-ref %build-inputs "libxml2")
- "/include/libxml2"))
- #:make-flags (list "LIBXML2=OFF"
- (string-append "CC=gcc -I"
- (assoc-ref %build-inputs "libxml2")
- "/include/libxml2")
- (string-append "CXX=g++ -std=c++11 -I"
- (assoc-ref %build-inputs "libxml2")
- "/include/libxml2")
- (string-append "CPPFLAGS=-I"
- (assoc-ref %build-inputs "libxml2")
- "/include/libxml2"))
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'autogen
- (lambda _
- (invoke "autoconf"))))))
- (native-inputs
- `(("autoconf" ,autoconf)
- ("automake" ,automake)
- ("cmake" ,cmake)
- ("gcc" ,gcc-9)
- ("gcc-toolchain" ,gcc-toolchain-9)
- ("gettext" ,gettext-minimal)
- ("libtool" ,libtool)
- ("libxml2" ,libxml2)
- ("m4" ,m4)
- ("perl" ,perl)
- ("pkg-config" ,pkg-config)
- ("python-minimal-wrapper" ,python-minimal-wrapper)
- ("qttools" ,qttools)))
- (inputs
- `(("avahi" ,avahi)
- ("boost" ,boost)
- ("expat" ,expat)
- ("gcc" ,gcc-9)
- ("gcc-toolchain" ,gcc-toolchain-9)
- ("hdf5" ,hdf5)
- ("hwloc" ,hwloc)
- ("lapack" ,lapack)
- ("lpsolve" ,lpsolve)
- ("jdk" ,icedtea "jdk")
- ("openscenegraph" ,openscenegraph)
- ("qt4" ,qt-4)
- ("readline" ,readline)
- ("sundials" ,sundials)))
- (synopsis "OpenModelica")
- (description
- "OpenModelica")
- (home-page "https://openmodelica.org/")
- (license license:gpl3+)))
- openmodelica
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement