diff options
author | Danny Milosavljevic <dannym@friendly-machines.com> | 2024-12-28 09:57:04 +0100 |
---|---|---|
committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2024-12-28 10:13:14 +0100 |
commit | 3d29b0a36489380ca3748b17380458b88bf31ea0 (patch) | |
tree | 844b79ef11e7638288d452012585baa44324bccb | |
parent | 475a186a6fbce2324d38242c8dd5715f274dcacf (diff) | |
download | guix-3d29b0a36489380ca3748b17380458b88bf31ea0.tar.gz guix-3d29b0a36489380ca3748b17380458b88bf31ea0.zip |
gnu: Add cadabra.
* gnu/packages/engineering.scm (cadabra): New variable.
Change-Id: I3c95e041ab6ba72b9fb68d4ca088184e618f8615
-rw-r--r-- | gnu/packages/engineering.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index c464351fc1..a5a91e62e9 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -4847,6 +4847,53 @@ multiple co-processes in cadabra.") (home-page "https://cadabra.science/") (license license:gpl2+))) +(define-public cadabra + (package + (name "cadabra") + (version "1.46") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kpeeters/cadabra.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0kks3qv1rka9ynw386kspjwq0g7xmwjycwlr3bbmxjmnk9zvnn9h")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags '("--disable-gui") + #:make-flags + (list (string-append "TIMESTAMP=-DRELEASE=\"\\\"" + ,version + "\\\"\" -DDATETIME=\"\\\"" + "Thu Jan 1 01:02:00 AM CET 1970" + "\\\"\" -DHOSTNAME=\"\\\"" + "dummy" + "\\\"\"")) + #:test-target "test" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix + (lambda _ + (substitute* "tests/Makefile.in" + (("TIMER=/usr/bin/time ") + "TIMER=time ")) + ;; Upstream bug. spino is a pointer. + (substitute* "src/exchange.cc" + (("ngr.spino==false") + "!ngr.spino"))))))) + (native-inputs + (list pkg-config time)) + (inputs + (list lie pcre gmp libsigc++-2 modglue)) + (synopsis "Computer algebra system geared towards field theory") + (description "This package provides a computer algebra system geared +towards field theory. This package is mostly meant to be used by texmacs +and mogan.") + (home-page "https://cadabra.science/") + (license license:gpl3+))) + (define-public cadabra2 (package (name "cadabra2") |