summaryrefslogtreecommitdiff
path: root/guix.scm
diff options
context:
space:
mode:
authorGreg Brown <greg.brown@cl.cam.ac.uk>2021-12-27 17:21:32 +0000
committerGreg Brown <greg.brown@cl.cam.ac.uk>2021-12-27 17:44:55 +0000
commit87913c4014f01a23d608457e379b74aa1befd4ab (patch)
tree34d2405463757cf44089a795adb9a932e6707e50 /guix.scm
parent0b581ec922b40284291d6814578bd2e68049c8b7 (diff)
Introduce Everything.agda to aid in overall compilation.
Diffstat (limited to 'guix.scm')
-rw-r--r--guix.scm49
1 files changed, 49 insertions, 0 deletions
diff --git a/guix.scm b/guix.scm
new file mode 100644
index 0000000..c4c6565
--- /dev/null
+++ b/guix.scm
@@ -0,0 +1,49 @@
+(use-modules (gnu packages agda)
+ (guix build-system copy)
+ (guix gexp)
+ (guix git-download)
+ ((guix licenses) #:prefix license:)
+ (guix packages)
+ (yellowsquid packages agda))
+(define %source-dir (dirname (current-filename)))
+
+
+
+(define-public agda-helium
+ (package
+ (name "agda-helium")
+ (version "0.1")
+ (home-page "https://git.yellowsquid.uk/yellowsquid/helium.git")
+ (source (local-file %source-dir
+ #:recursive? #t
+ #:select? (git-predicate %source-dir)))
+ (build-system copy-build-system)
+ (inputs (list agda-stdlib))
+ (native-inputs (list agda))
+ (arguments
+ `(#:install-plan
+ '(("src" "/share/agda/lib/helium/" #:include-regexp ("\\.agdai?")))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'install 'build
+ (lambda* (#:key inputs #:allow-other-keys)
+ (call-with-output-file "libraries"
+ (lambda (port)
+ (format port
+ "~a\n"
+ (string-append
+ (search-input-file
+ inputs
+ "/share/agda/lib/standard-library.agda-lib"))
+ port)
+ (display "./agda-helium.agda-lib\n" port)))
+ (invoke "agda"
+ "--library-file=libraries"
+ "--library=agda-helium"
+ "-i."
+ "Everything.agda"))))))
+ (synopsis "Semantics of the Arm M-profile Vector Extension (MVE) in Agda")
+ (description "")
+ (license license:expat)))
+
+agda-helium