2018-02-21 00:55:06 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2018 Alex ter Weele <alex.ter.weele@gmail.com>
|
2018-09-30 10:23:59 +00:00
|
|
|
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
2018-10-17 18:53:32 +00:00
|
|
|
;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
|
2022-05-08 00:00:02 +00:00
|
|
|
;;; Copyright © 2018, 2022 Tobias Geerinckx-Rice <me@tobias.gr>
|
2019-08-12 15:33:36 +00:00
|
|
|
;;; Copyright © 2018 John Soo <jsoo1@asu.edu>
|
2019-08-27 22:19:48 +00:00
|
|
|
;;; Copyright © 2019 Ludovic Courtès <ludo@gnu.org>
|
2023-03-01 15:33:52 +00:00
|
|
|
;;; Copyright © 2023 Josselin Poiret <dev@jpoiret.xyz>
|
2018-02-21 00:55:06 +00:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages agda)
|
2023-04-30 09:58:09 +00:00
|
|
|
#:use-module (gnu packages)
|
2018-02-21 00:55:06 +00:00
|
|
|
#:use-module (gnu packages haskell-check)
|
|
|
|
#:use-module (gnu packages haskell-web)
|
gnu: Move non-compilers out of haskell.scm.
* gnu/packages/haskell.scm (ghc-abstract-deque, ghc-abstract-par,
ghc-adjunctions, ghc-aeson-compat, ghc-alex, ghc-alsa-core,
ghc-annotated-wl-pprint, ghc-ansi-terminal, ghc-ansi-wl-pprint,
ghc-appar, ghc-async, ghc-atomic-write, ghc-attoparsec,
ghc-attoparsec-bootstrap, ghc-attoparsec-iso8601, ghc-auto-update,
ghc-aws, ghc-base16-bytestring, ghc-base64-bytestring, ghc-base-compat,
ghc-basement, ghc-base-orphans, ghc-base-prelude,
ghc-base-unicode-symbols, ghc-bifunctors, ghc-bindings-dsl,
ghc-blaze-builder, ghc-blaze-markup, ghc-bloomfilter, ghc-boxes,
ghc-byteable, ghc-byteorder, ghc-bytes, ghc-bytestring-builder,
ghc-bytestring-handle, ghc-bytestring-lexing, ghc-bzlib-conduit,
ghc-c2hs, ghc-cairo, ghc-call-stack, ghc-call-stack-boot,
ghc-case-insensitive, ghc-cereal, ghc-cereal-conduit, ghc-cgi,
ghc-charset, ghc-chart, ghc-chart-cairo, ghc-chasingbottoms,
ghc-cheapskate, ghc-chell, ghc-chell-quickcheck, ghc-chunked-data,
ghc-clock, ghc-clock-bootstrap, ghc-cmark, ghc-cmark-gfm, ghc-cmdargs,
ghc-code-page, ghc-colour, ghc-comonad, ghc-concatenative,
ghc-concurrent-output, ghc-conduit, ghc-conduit-algorithms,
ghc-conduit-combinators, ghc-conduit-extra, ghc-configurator,
ghc-connection, ghc-constraints, ghc-contravariant,
ghc-contravariant-extras, ghc-convertible, ghc-data-accessor,
ghc-data-accessor-transformers, ghc-data-default,
ghc-data-default-class, ghc-data-default-instances-base,
ghc-data-default-instances-containers, ghc-data-default-instances-dlist,
ghc-data-default-instances-old-locale, ghc-data-hash, ghc-data-ordlist,
ghc-deepseq-generics, ghc-descriptive, ghc-diff, ghc-disk-free-space,
ghc-distributive, ghc-dlist, ghc-doctemplates, ghc-doctest,
ghc-double-conversion, ghc-easy-file, ghc-easyplot, ghc-echo,
ghc-edisonapi, ghc-edisoncore, ghc-edit-distance, ghc-either,
ghc-email-validate, ghc-enclosed-exceptions, ghc-equivalence, ghc-erf,
ghc-errorcall-eq-instance, ghc-errors, ghc-esqueleto, ghc-exactprint,
ghc-exceptions, ghc-executable-path, ghc-extensible-exceptions,
ghc-extra, ghc-fail, ghc-fast-logger, ghc-feed, ghc-fgl,
ghc-fgl-arbitrary, ghc-file-embed, ghc-filemanip, ghc-findbin,
ghc-fingertree, ghc-fixed, ghc-foldl, ghc-foundation, ghc-free,
ghc-fsnotify, ghc-generic-deriving, ghc-generics-sop,
ghc-geniplate-mirror, ghc-genvalidity, ghc-genvalidity-property,
ghc-gitrev, ghc-glob, ghc-gluraw, ghc-glut, ghc-gnuplot, ghc-graphviz,
ghc-gtk2hs-buildtools, ghc-hackage-security, ghc-haddock,
ghc-haddock-api, ghc-haddock-library, ghc-half, ghc-happy, ghc-hashable,
ghc-hashable-bootstrap, ghc-hashable-time, ghc-hashtables,
ghc-haskell-lexer, ghc-haskell-src, ghc-haskell-src-exts,
ghc-haskell-src-exts-util, ghc-haskell-src-meta, ghc-hasktags, ghc-hex,
ghc-highlighting-kate, ghc-hindent, ghc-hinotify, ghc-hmatrix,
ghc-hmatrix-gsl, ghc-hmatrix-gsl-stats, ghc-hmatrix-special,
ghc-hostname, ghc-hourglass, ghc-hpack, ghc-hs-bibutils, ghc-hslogger,
ghc-hslua, ghc-hslua-module-text, ghc-http-api-data, ghc-ieee754,
ghc-ifelse, ghc-indents, ghc-inline-c, ghc-inline-c-cpp,
ghc-integer-logarithms, ghc-integer-logarithms-bootstrap,
ghc-interpolate, ghc-intervalmap, ghc-invariant, ghc-iproute, ghc-iwlib,
ghc-json, ghc-juicypixels, ghc-kan-extensions, ghc-language-c,
ghc-language-haskell-extract, ghc-lens, ghc-libffi, ghc-libmpd,
ghc-libxml, ghc-lifted-async, ghc-lifted-base, ghc-linear,
ghc-logging-facade, ghc-logict, ghc-lzma, ghc-lzma-conduit,
ghc-markdown-unlit, ghc-math-functions, ghc-megaparsec, ghc-memory,
ghc-memotrie, ghc-microlens, ghc-microlens-ghc, ghc-microlens-mtl,
ghc-microlens-platform, ghc-microlens-th, ghc-missingh, ghc-mmap,
ghc-mmorph, ghc-mockery, ghc-monad-control, ghc-monad-logger,
ghc-monad-loops, ghc-monad-par, ghc-monad-par-extras, ghc-monadplus,
ghc-monadrandom, ghc-monads-tf, ghc-mono-traversable, ghc-murmur-hash,
ghc-mwc-random, ghc-nats, ghc-nats-bootstrap, ghc-network,
ghc-network-info, ghc-network-uri, ghc-newtype-generics, ghc-objectname,
ghc-old-locale, ghc-old-time, ghc-opengl, ghc-openglraw,
ghc-operational, ghc-options, ghc-optparse-applicative, ghc-pandoc,
ghc-pandoc-citeproc, ghc-pandoc-types, ghc-parallel, ghc-parsec-numbers,
ghc-parser-combinators, ghc-parsers, ghc-path, ghc-path-io, ghc-paths,
ghc-patience, ghc-pcre-light, ghc-persistent, ghc-persistent-sqlite,
ghc-persistent-template, ghc-polyparse, ghc-pqueue, ghc-prelude-extras,
ghc-pretty-hex, ghc-pretty-show, ghc-primitive, ghc-profunctors,
ghc-psqueues, ghc-random, ghc-raw-strings-qq, ghc-rebase, ghc-reducers,
ghc-refact, ghc-reflection, ghc-regex, ghc-regex-applicative,
ghc-regex-base, ghc-regex-compat, ghc-regex-compat-tdfa,
ghc-regex-pcre-builtin, ghc-regex-posix, ghc-regex-tdfa,
ghc-regex-tdfa-text, ghc-rerebase, ghc-resolv, ghc-resource-pool,
ghc-resourcet, ghc-rfc5051, ghc-rio, ghc-safe, ghc-safe-exceptions,
ghc-safeio, ghc-safesemaphore, ghc-sandi, ghc-scientific,
ghc-scientific-bootstrap, ghc-sdl, ghc-sdl-image, ghc-sdl-mixer,
ghc-securemem, ghc-semigroupoids, ghc-semigroups,
ghc-semigroups-bootstrap, ghc-setenv, ghc-setlocale, ghc-shakespeare,
ghc-shelly, ghc-silently, ghc-simple-reflect, ghc-simple-sendfile,
ghc-skylighting-core, ghc-skylighting, ghc-smallcheck, ghc-socks,
ghc-split, ghc-statevar, ghc-statistics, ghc-stm-chans, ghc-stm-conduit,
ghc-stmonadtrans, ghc-storable-complex, ghc-streaming-commons,
ghc-strict, ghc-stringbuilder, ghc-string-qq, ghc-stringsearch,
ghc-stylish-haskell, ghc-syb, ghc-system-fileio, ghc-system-filepath,
ghc-tagged, ghc-tar, ghc-temporary, ghc-temporary-rc, ghc-terminal-size,
ghc-texmath, ghc-text-binary, ghc-tf-random, ghc-th-abstraction,
ghc-th-expand-syns, ghc-th-lift, ghc-th-lift-instances, ghc-th-orphans,
ghc-th-reify-many, ghc-time-locale-compat, ghc-tldr,
ghc-transformers-base, ghc-transformers-compat, ghc-tree-diff,
ghc-trifecta, ghc-tuple-th, ghc-typed-process, ghc-unbounded-delays,
ghc-unexceptionalio, ghc-union-find, ghc-uniplate, ghc-unix-compat,
ghc-unix-time, ghc-unliftio, ghc-unliftio-core,
ghc-unordered-containers, ghc-unordered-containers-bootstrap,
ghc-uri-bytestring, ghc-utf8-string, ghc-utility-ht, ghc-uuid,
ghc-uuid-types, ghc-validation, ghc-validity, ghc-vault, ghc-vector,
ghc-vector-algorithms, ghc-vector-binary-instances, ghc-vector-builder,
ghc-vector-th-unbox, ghc-void, ghc-wave, ghc-wcwidth,
ghc-wcwidth-bootstrap, ghc-weigh, ghc-wl-pprint,
ghc-wl-pprint-annotated, ghc-wl-pprint-text, ghc-word8, ghc-x11,
ghc-x11-xft, ghc-xdg-basedir, ghc-xml, ghc-xml-conduit, ghc-xml-types,
ghc-yaml, ghc-zip-archive, ghc-zlib): Move variables from here...
* gnu/packages/haskell-xyz.scm: ...to here.
* gnu/packages/agda.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/cran.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/games.scm,
gnu/packages/graphics.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-check.scm,
gnu/packages/idris.scm,
gnu/packages/statistics.scm,
gnu/packages/wm.scm: Update module references.
Co-authored-by: Timothy Sample <samplet@ngyro.com>
2019-08-30 01:56:35 +00:00
|
|
|
#:use-module (gnu packages haskell-xyz)
|
2023-03-01 15:34:59 +00:00
|
|
|
#:use-module (gnu packages imagemagick)
|
|
|
|
#:use-module (gnu packages python)
|
|
|
|
#:use-module (gnu packages sphinx)
|
|
|
|
#:use-module (gnu packages texinfo)
|
2023-04-29 15:01:14 +00:00
|
|
|
#:use-module (guix build-system agda)
|
2018-07-21 15:57:35 +00:00
|
|
|
#:use-module (guix build-system emacs)
|
2019-08-12 15:33:36 +00:00
|
|
|
#:use-module (guix build-system gnu)
|
2018-02-21 00:55:06 +00:00
|
|
|
#:use-module (guix build-system haskell)
|
2022-05-12 05:42:09 +00:00
|
|
|
#:use-module (guix gexp)
|
2018-02-21 00:55:06 +00:00
|
|
|
#:use-module (guix download)
|
2019-08-27 22:19:48 +00:00
|
|
|
#:use-module (guix git-download)
|
2018-02-21 00:55:06 +00:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix packages))
|
|
|
|
|
|
|
|
(define-public agda
|
|
|
|
(package
|
|
|
|
(name "agda")
|
2023-03-01 15:33:52 +00:00
|
|
|
(version "2.6.3")
|
2018-02-21 00:55:06 +00:00
|
|
|
(source
|
|
|
|
(origin
|
2023-03-01 15:33:52 +00:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/agda/agda.git")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
2018-02-21 00:55:06 +00:00
|
|
|
(sha256
|
2023-04-30 09:58:09 +00:00
|
|
|
(base32 "1s7zd01i8pmvi90ywx497kc07z50nah7h0fc2dn6jzb132k5sh1q"))
|
|
|
|
(patches (search-patches "agda-libdirs-env-variable.patch"))))
|
2018-02-21 00:55:06 +00:00
|
|
|
(build-system haskell-build-system)
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list ghc-aeson
|
|
|
|
ghc-alex
|
|
|
|
ghc-async
|
|
|
|
ghc-blaze-html
|
|
|
|
ghc-boxes
|
|
|
|
ghc-case-insensitive
|
|
|
|
ghc-data-hash
|
|
|
|
ghc-edit-distance
|
|
|
|
ghc-equivalence
|
|
|
|
ghc-gitrev
|
|
|
|
ghc-happy
|
|
|
|
ghc-hashable
|
|
|
|
ghc-hashtables
|
|
|
|
ghc-monad-control
|
|
|
|
ghc-murmur-hash
|
|
|
|
ghc-parallel
|
|
|
|
ghc-regex-tdfa
|
|
|
|
ghc-split
|
|
|
|
ghc-strict
|
|
|
|
ghc-unordered-containers
|
|
|
|
ghc-uri-encode
|
2023-03-01 15:33:52 +00:00
|
|
|
ghc-vector-hashtables
|
2021-12-13 16:18:24 +00:00
|
|
|
ghc-zlib))
|
2023-03-01 15:34:59 +00:00
|
|
|
(native-inputs
|
|
|
|
(list python
|
|
|
|
python-sphinx
|
|
|
|
python-sphinx-rtd-theme
|
|
|
|
texinfo
|
|
|
|
imagemagick))
|
2018-07-21 02:35:14 +00:00
|
|
|
(arguments
|
2022-05-08 00:00:00 +00:00
|
|
|
(list #:modules `((guix build haskell-build-system)
|
|
|
|
(guix build utils)
|
|
|
|
(srfi srfi-26)
|
|
|
|
(ice-9 match))
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
;; This allows us to call the 'agda' binary before installing.
|
|
|
|
(add-after 'unpack 'set-ld-library-path
|
|
|
|
(lambda _
|
|
|
|
(setenv "LD_LIBRARY_PATH" (string-append (getcwd) "/dist/build"))))
|
|
|
|
(add-after 'compile 'agda-compile
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((agda-compiler (string-append #$output "/bin/agda")))
|
|
|
|
(for-each (cut invoke agda-compiler <>)
|
|
|
|
(find-files (string-append #$output "/share")
|
2023-03-01 15:34:59 +00:00
|
|
|
"\\.agda$")))))
|
|
|
|
(add-after 'agda-compile 'install-info
|
|
|
|
(lambda _
|
|
|
|
(with-directory-excursion "doc/user-manual"
|
|
|
|
(invoke "sphinx-build" "-b" "texinfo"
|
|
|
|
"." "_build_texinfo")
|
|
|
|
(with-directory-excursion "_build_texinfo"
|
|
|
|
(setenv "infodir" (string-append #$output
|
|
|
|
"/share/info"))
|
|
|
|
(invoke "make" "install-info"))))))))
|
2023-04-30 09:58:09 +00:00
|
|
|
(search-paths
|
|
|
|
(list (search-path-specification
|
|
|
|
(variable "AGDA_LIBDIRS")
|
|
|
|
(files (list "lib/agda")))))
|
|
|
|
(native-search-paths
|
|
|
|
search-paths)
|
2020-01-18 23:51:22 +00:00
|
|
|
(home-page "https://wiki.portal.chalmers.se/agda/")
|
2018-02-21 00:55:06 +00:00
|
|
|
(synopsis
|
|
|
|
"Dependently typed functional programming language and proof assistant")
|
|
|
|
(description
|
|
|
|
"Agda is a dependently typed functional programming language: it has
|
|
|
|
inductive families, which are similar to Haskell's GADTs, but they can be
|
|
|
|
indexed by values and not just types. It also has parameterised modules,
|
|
|
|
mixfix operators, Unicode characters, and an interactive Emacs interface (the
|
|
|
|
type checker can assist in the development of your code). Agda is also a
|
|
|
|
proof assistant: it is an interactive system for writing and checking proofs.
|
|
|
|
Agda is based on intuitionistic type theory, a foundational system for
|
|
|
|
constructive mathematics developed by the Swedish logician Per Martin-Löf. It
|
|
|
|
has many similarities with other proof assistants based on dependent types,
|
|
|
|
such as Coq, Epigram and NuPRL.")
|
|
|
|
;; Agda is distributed under the MIT license, and a couple of
|
|
|
|
;; source files are BSD-3. See LICENSE for details.
|
|
|
|
(license (list license:expat license:bsd-3))))
|
2018-07-21 15:57:35 +00:00
|
|
|
|
|
|
|
(define-public emacs-agda2-mode
|
|
|
|
(package
|
|
|
|
(name "emacs-agda2-mode")
|
2023-03-08 15:53:22 +00:00
|
|
|
(version (package-version agda))
|
|
|
|
(source (package-source agda))
|
2018-07-21 15:57:35 +00:00
|
|
|
(build-system emacs-build-system)
|
|
|
|
(arguments
|
2023-03-08 15:56:16 +00:00
|
|
|
(list
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'enter-elisp-dir
|
|
|
|
(lambda _ (chdir "src/data/emacs-mode"))))))
|
2018-07-21 15:57:35 +00:00
|
|
|
(home-page "https://agda.readthedocs.io/en/latest/tools/emacs-mode.html")
|
|
|
|
(synopsis "Emacs mode for Agda")
|
|
|
|
(description "This Emacs mode enables interactive development with
|
2023-03-08 15:53:22 +00:00
|
|
|
Agda. It also aids the input of Unicode characters.")
|
|
|
|
(license (package-license agda))))
|
2019-08-12 15:33:36 +00:00
|
|
|
|
|
|
|
(define-public agda-ial
|
2023-06-04 08:46:26 +00:00
|
|
|
(let ((revision "1")
|
|
|
|
;; There hasn't been a release in a long time, and the last one
|
|
|
|
;; doesn't build with Agda 2.6.
|
|
|
|
(commit "ded30c410d5d40142249686572aa1acd1b2f8cc7"))
|
|
|
|
(package
|
|
|
|
(name "agda-ial")
|
|
|
|
(version (git-version "1.5.0" revision commit))
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference (url "https://github.com/cedille/ial")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0xn6zvp1wnm0i84pz1rfbzfmayd15ch4i5s11ycd88d22pxd55dc"))))
|
|
|
|
(build-system agda-build-system)
|
|
|
|
(arguments
|
|
|
|
(list
|
|
|
|
#:gnu-and-haskell? #t
|
2019-08-12 15:33:36 +00:00
|
|
|
#:phases
|
2023-06-04 08:46:26 +00:00
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-before 'build 'patch-dependencies
|
|
|
|
(lambda _ (patch-shebang "find-deps.sh")))
|
|
|
|
(replace 'build
|
|
|
|
(lambda _
|
|
|
|
(invoke "make"))))))
|
|
|
|
(home-page "https://github.com/cedille/ial")
|
|
|
|
(synopsis "The Iowa Agda Library")
|
|
|
|
(description
|
|
|
|
"The goal is to provide a concrete library focused on verification
|
2019-08-12 15:33:36 +00:00
|
|
|
examples, as opposed to mathematics. The library has a good number
|
|
|
|
of theorems for booleans, natural numbers, and lists. It also has
|
|
|
|
trees, tries, vectors, and rudimentary IO. A number of good ideas
|
|
|
|
come from Agda's standard library.")
|
2023-06-04 08:46:26 +00:00
|
|
|
(license license:expat))))
|
2023-04-29 15:01:14 +00:00
|
|
|
|
|
|
|
(define-public agda-stdlib
|
|
|
|
(package
|
|
|
|
(name "agda-stdlib")
|
|
|
|
(version "1.7.2")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/agda/agda-stdlib")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"065hf24xjpciwdrvk4isslgcgi01q0k93ql0y1sjqqvy5ryg5xmy"))))
|
|
|
|
(build-system agda-build-system)
|
|
|
|
(arguments
|
|
|
|
(list
|
|
|
|
#:plan '(("^\\./README.agda$" "-i."))
|
|
|
|
#:gnu-and-haskell? #t
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-before 'build 'generate-everything
|
|
|
|
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
|
|
|
(invoke
|
|
|
|
(search-input-file (or native-inputs inputs) "/bin/runhaskell")
|
|
|
|
"GenerateEverything.hs"))))))
|
|
|
|
(native-inputs (list ghc-filemanip))
|
|
|
|
(synopsis "The Agda Standard Library")
|
|
|
|
(description
|
|
|
|
"The standard library aims to contain all the tools needed to write
|
|
|
|
both programs and proofs easily. While we always try and write efficient
|
|
|
|
code, we prioritize ease of proof over type-checking and normalization
|
|
|
|
performance. If computational performance is important to you, then perhaps
|
|
|
|
try agda-prelude instead.")
|
|
|
|
(home-page "https://wiki.portal.chalmers.se/agda/pmwiki.php")
|
|
|
|
(license license:expat)))
|
|
|
|
|
2023-04-30 10:10:06 +00:00
|
|
|
(define-public agda-categories
|
|
|
|
(package
|
|
|
|
(name "agda-categories")
|
|
|
|
(version "0.1.7.2")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/agda/agda-categories.git")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0xwgm2mfl2pxipsv31bin8p14y1yhd9n27lv3clvsxd4z9yc034m"))
|
|
|
|
(patches (search-patches "agda-categories-remove-incompatible-flags.patch"
|
|
|
|
"agda-categories-use-find.patch"))))
|
|
|
|
(build-system agda-build-system)
|
|
|
|
(arguments
|
|
|
|
(list
|
|
|
|
#:gnu-and-haskell? #t
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(replace 'build
|
|
|
|
(lambda _
|
|
|
|
(invoke "make"))))))
|
|
|
|
(propagated-inputs
|
|
|
|
(list agda-stdlib))
|
|
|
|
(synopsis "New Categories library for Agda")
|
|
|
|
(description "A new Categories library for Agda")
|
|
|
|
(home-page "https://github.com/agda/agda-categories")
|
|
|
|
(license license:expat)))
|
2023-04-30 10:12:00 +00:00
|
|
|
|
|
|
|
(define-public agda-cubical
|
|
|
|
;; Upstream's HEAD follows the latest Agda release, but they don't release
|
|
|
|
;; until a newer Agda release comes up, so their releases are always one
|
|
|
|
;; version late.
|
2023-07-13 19:04:11 +00:00
|
|
|
(package
|
|
|
|
(name "agda-cubical")
|
|
|
|
(version "0.5")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/agda/cubical.git")
|
|
|
|
(commit (string-append "v" version))))
|
2023-10-11 05:14:00 +00:00
|
|
|
(file-name (git-file-name name version))
|
2023-07-13 19:04:11 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0yfg7gr55n08ly1qgzpcp16s15k1abycppbcdi9lzg1hjryqxcg3"))))
|
|
|
|
(build-system agda-build-system)
|
|
|
|
(arguments
|
|
|
|
(list
|
|
|
|
#:gnu-and-haskell? #t
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(replace 'build
|
|
|
|
(lambda _
|
|
|
|
(invoke "make"))))))
|
|
|
|
(synopsis "Standard library for Cubical Agda")
|
|
|
|
(description "A standard library for Cubical Agda, comparable to
|
2023-04-30 10:12:00 +00:00
|
|
|
agda-stdlib but using cubical methods.")
|
2023-07-13 19:04:11 +00:00
|
|
|
(home-page "https://github.com/agda/cubical")
|
|
|
|
(license license:expat)))
|
2023-04-30 10:12:33 +00:00
|
|
|
|
|
|
|
(define-public agda-1lab
|
|
|
|
;; Upstream doesn't do releases (yet). Use a commit that builds with 2.6.3,
|
|
|
|
;; since they use Agda HEAD.
|
|
|
|
(let* ((revision "1")
|
|
|
|
(commit "47ca1d23640a6f49a3abe3c2fe27738bcc10c9c6"))
|
|
|
|
(package
|
|
|
|
(name "agda-1lab")
|
|
|
|
(version (git-version "0.0" revision commit))
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/plt-amy/1lab.git")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0j7mp6c0xd0849skdxzncklkxynxnyfrbpcjv4qp5p1xfn0dnfqx"))))
|
|
|
|
(build-system agda-build-system)
|
|
|
|
(arguments
|
|
|
|
(list #:plan '(("src/index\\.lagda\\.md$"))))
|
|
|
|
(synopsis "Reference resource for mathematics done in Homotopy Type Theory")
|
|
|
|
(description "A formalised, cross-linked reference resource for
|
|
|
|
mathematics done in Homotopy Type Theory. Unlike the HoTT book, the 1lab is
|
|
|
|
not a “linear” resource: Concepts are presented as a directed graph, with
|
|
|
|
links indicating dependencies.")
|
|
|
|
(home-page "https://1lab.dev")
|
|
|
|
(license license:agpl3))))
|