2017-01-03 20:23:36 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
|
|
|
|
;;; Copyright © 2016, 2017 David Craven <david@craven.ch>
|
2018-03-08 00:32:19 +00:00
|
|
|
;;; Copyright © 2018 Alex ter Weele <alex.ter.weele@gmail.com>
|
2022-04-19 03:20:27 +00:00
|
|
|
;;; Copyright © 2019, 2021, 2022 Eric Bavier <bavier@posteo.net>
|
2022-04-19 04:31:46 +00:00
|
|
|
;;; Copyright © 2022 Attila Lendvai <attila@lendvai.name>
|
2017-01-03 20:23:36 +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 idris)
|
2019-04-12 00:30:39 +00:00
|
|
|
#:use-module (gnu packages)
|
gnu: Move testing packages from haskell to haskell-check.
* gnu/packages/haskell.scm (ghc-clock-bootstrap, ghc-tasty-ant-xml,
ghc-tasty-smallcheck, ghc-tasty-quickcheck, ghc-tasty-golden, ghc-tasty,
ghc-tasty-hunit, ghc-tasty-kat, ghc-tasty-th, ghc-tasty-rerun,
ghc-quickcheck-instances, ghc-quickcheck-unicode, ghc-quickcheck-io,
ghc-quickcheck, ghc-test-framework, ghc-test-framework-hunit,
ghc-test-framework-quickcheck2, ghc-test-framework-th, ghc-hunit,
hspec-discover, ghc-hspec-core, ghc-hspec-meta, ghc-hspec, ghc-hspec-contrib,
ghc-hspec-expectations): Move variables to ...
* gnu/packages/haskell-check.scm: ... this new file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/haskell.scm,
gnu/packages/idris.scm,
gnu/packages/version-control.scm,
gnu/packages/wm.scm: Include haskell-check module.
2017-11-13 16:11:01 +00:00
|
|
|
#:use-module (gnu packages haskell-check)
|
gnu: Move web packages from haskell to haskell-web.
* gnu/packages/haskell.scm (ghc-tagsoup, ghc-cookie, ghc-http-types, ghc-http,
ghc-http-client, ghc-http-client-tls, ghc-http-date, ghc-http2,
ghc-http-conduit, ghc-wai, ghc-wai-logger, ghc-wai-extra, ghc-wai-conduit,
ghc-warp, ghc-warp-tls, ghc-xss-sanitize, ghc-css-text, ghc-mime-types,
ghc-html, ghc-xhtml, ghc-blaze-html, ghc-aeson, ghc-aeson-pretty,
ghc-aeson-qq, ghc-multipart): Move variables to ...
* gnu/packages/haskell-web.scm: ... this new file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/haskell.scm,
gnu/packages/idris.scm,
gnu/packages/version-control.scm,
gnu/packages/wm.scm: Include haskell-web module.
2017-11-13 17:09:36 +00:00
|
|
|
#: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)
|
2019-04-12 00:28:45 +00:00
|
|
|
#:use-module (gnu packages libffi)
|
2017-01-03 20:23:36 +00:00
|
|
|
#:use-module (gnu packages multiprecision)
|
|
|
|
#:use-module (gnu packages ncurses)
|
2019-04-12 00:30:39 +00:00
|
|
|
#:use-module (gnu packages perl)
|
2016-12-15 11:35:20 +00:00
|
|
|
#:use-module (guix build-system gnu)
|
2017-01-03 20:23:36 +00:00
|
|
|
#:use-module (guix build-system haskell)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix git-download)
|
2022-04-19 03:40:10 +00:00
|
|
|
#:use-module (guix utils)
|
2017-01-03 20:23:36 +00:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix packages))
|
|
|
|
|
|
|
|
(define-public idris
|
|
|
|
(package
|
|
|
|
(name "idris")
|
2022-04-19 04:31:46 +00:00
|
|
|
(version "1.3.4")
|
2017-01-03 20:23:36 +00:00
|
|
|
(source (origin
|
2022-04-19 04:31:46 +00:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/idris-lang/Idris-dev.git")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
2017-01-03 20:23:36 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
2022-04-19 04:31:46 +00:00
|
|
|
"0cd2a92323hb9a6wy8sc0cqwnisf4pv8y9y2rxvxcbyv8cs1q8g2"))
|
|
|
|
(patches (search-patches "idris-test-ffi008.patch"))))
|
2017-01-03 20:23:36 +00:00
|
|
|
(build-system haskell-build-system)
|
2019-04-12 00:30:39 +00:00
|
|
|
(native-inputs ;For tests
|
2021-12-13 16:18:24 +00:00
|
|
|
(list perl ghc-cheapskate ghc-tasty ghc-tasty-golden
|
|
|
|
ghc-tasty-rerun))
|
2017-01-03 20:23:36 +00:00
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list gmp
|
|
|
|
ncurses
|
|
|
|
ghc-aeson
|
|
|
|
ghc-annotated-wl-pprint
|
|
|
|
ghc-ansi-terminal
|
|
|
|
ghc-ansi-wl-pprint
|
|
|
|
ghc-async
|
|
|
|
ghc-base64-bytestring
|
|
|
|
ghc-blaze-html
|
|
|
|
ghc-blaze-markup
|
|
|
|
ghc-cheapskate
|
|
|
|
ghc-code-page
|
|
|
|
ghc-fingertree
|
|
|
|
ghc-fsnotify
|
|
|
|
ghc-ieee754
|
|
|
|
ghc-libffi
|
|
|
|
ghc-megaparsec
|
|
|
|
ghc-network
|
|
|
|
ghc-optparse-applicative
|
|
|
|
ghc-regex-tdfa
|
|
|
|
ghc-safe
|
|
|
|
ghc-split
|
|
|
|
ghc-terminal-size
|
|
|
|
ghc-uniplate
|
|
|
|
ghc-unordered-containers
|
|
|
|
ghc-utf8-string
|
|
|
|
ghc-vector
|
|
|
|
ghc-vector-binary-instances
|
|
|
|
ghc-zip-archive))
|
2017-01-03 20:23:36 +00:00
|
|
|
(arguments
|
2019-04-12 00:30:39 +00:00
|
|
|
`(#:configure-flags
|
2017-01-03 20:23:36 +00:00
|
|
|
(list (string-append "--datasubdir="
|
2019-04-12 00:28:45 +00:00
|
|
|
(assoc-ref %outputs "out") "/lib/idris")
|
|
|
|
"-fFFI" "-fGMP")
|
2017-01-03 20:23:36 +00:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
2020-08-29 13:54:53 +00:00
|
|
|
;; This allows us to call the 'idris' binary before installing.
|
|
|
|
(add-after 'unpack 'set-ld-library-path
|
|
|
|
(lambda _
|
2022-04-19 03:20:27 +00:00
|
|
|
(setenv "LD_LIBRARY_PATH" (string-append (getcwd) "/dist/build"))))
|
2021-09-20 08:49:34 +00:00
|
|
|
(add-before 'configure 'update-constraints
|
2019-11-16 14:42:03 +00:00
|
|
|
(lambda _
|
|
|
|
(substitute* "idris.cabal"
|
2021-09-20 08:49:34 +00:00
|
|
|
(("(aeson|ansi-terminal|haskeline|megaparsec|optparse-applicative)\\s+[^,]+" all dep)
|
|
|
|
dep))))
|
2017-01-03 20:23:36 +00:00
|
|
|
(add-before 'configure 'set-cc-command
|
|
|
|
(lambda _
|
2022-04-19 03:40:10 +00:00
|
|
|
(setenv "CC" ,(cc-for-target))))
|
2017-01-03 20:23:36 +00:00
|
|
|
(add-after 'install 'fix-libs-install-location
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(lib (string-append out "/lib/idris"))
|
|
|
|
(modules (string-append lib "/libs")))
|
|
|
|
(for-each
|
|
|
|
(lambda (module)
|
|
|
|
(symlink (string-append modules "/" module)
|
|
|
|
(string-append lib "/" module)))
|
2019-04-12 00:30:39 +00:00
|
|
|
'("prelude" "base" "contrib" "effects" "pruviloj")))))
|
|
|
|
(delete 'check) ;Run check later
|
|
|
|
(add-after 'install 'check
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys #:rest args)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2021-01-19 05:27:25 +00:00
|
|
|
(chmod "test/scripts/timeout" #o755) ;must be executable
|
2019-04-12 00:30:39 +00:00
|
|
|
(setenv "TASTY_NUM_THREADS" (number->string (parallel-job-count)))
|
2022-04-19 03:40:10 +00:00
|
|
|
(setenv "IDRIS_CC" ,(cc-for-target)) ;Needed for creating executables
|
2019-04-12 00:30:39 +00:00
|
|
|
(setenv "PATH" (string-append out "/bin:" (getenv "PATH")))
|
2020-08-29 13:54:53 +00:00
|
|
|
(apply (assoc-ref %standard-phases 'check) args))))
|
|
|
|
(add-before 'check 'restore-libidris_rts
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; The Haskell build system moves this library to the
|
|
|
|
;; "static" output. Idris only knows how to find it in the
|
|
|
|
;; "out" output, so we restore it here.
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
(static (assoc-ref outputs "static"))
|
|
|
|
(filename "/lib/idris/rts/libidris_rts.a"))
|
|
|
|
(rename-file (string-append static filename)
|
2022-04-19 03:20:27 +00:00
|
|
|
(string-append out filename))))))))
|
2017-01-03 20:23:36 +00:00
|
|
|
(native-search-paths
|
|
|
|
(list (search-path-specification
|
|
|
|
(variable "IDRIS_LIBRARY_PATH")
|
|
|
|
(files '("lib/idris")))))
|
2020-01-18 22:03:13 +00:00
|
|
|
(home-page "https://www.idris-lang.org")
|
2017-01-03 20:23:36 +00:00
|
|
|
(synopsis "General purpose language with full dependent types")
|
|
|
|
(description "Idris is a general purpose language with full dependent
|
|
|
|
types. It is compiled, with eager evaluation. Dependent types allow types to
|
|
|
|
be predicated on values, meaning that some aspects of a program's behaviour
|
|
|
|
can be specified precisely in the type. The language is closely related to
|
|
|
|
Epigram and Agda.")
|
|
|
|
(license license:bsd-3)))
|
2016-12-15 11:35:20 +00:00
|
|
|
|
|
|
|
;; Idris modules use the gnu-build-system so that the IDRIS_LIBRARY_PATH is set.
|
|
|
|
(define (idris-default-arguments name)
|
|
|
|
`(#:modules ((guix build gnu-build-system)
|
|
|
|
(guix build utils)
|
|
|
|
(ice-9 ftw)
|
|
|
|
(ice-9 match))
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure)
|
|
|
|
(delete 'build)
|
|
|
|
(delete 'check)
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(idris (assoc-ref inputs "idris"))
|
|
|
|
(idris-bin (string-append idris "/bin/idris"))
|
|
|
|
(idris-libs (string-append idris "/lib/idris/libs"))
|
|
|
|
(module-name (and (string-prefix? "idris-" ,name)
|
|
|
|
(substring ,name 6)))
|
|
|
|
(ibcsubdir (string-append out "/lib/idris/" module-name))
|
|
|
|
(ipkg (string-append module-name ".ipkg"))
|
|
|
|
(idris-library-path (getenv "IDRIS_LIBRARY_PATH"))
|
|
|
|
(idris-path (string-split idris-library-path #\:))
|
|
|
|
(idris-path-files (apply append
|
|
|
|
(map (lambda (path)
|
|
|
|
(map (lambda (dir)
|
|
|
|
(string-append path "/" dir))
|
|
|
|
(scandir path))) idris-path)))
|
|
|
|
(idris-path-subdirs (filter (lambda (path)
|
|
|
|
(and path (match (stat:type (stat path))
|
|
|
|
('directory #t)
|
|
|
|
(_ #f))))
|
|
|
|
idris-path-files))
|
|
|
|
(install-cmd (cons* idris-bin
|
|
|
|
"--ibcsubdir" ibcsubdir
|
2017-04-15 02:31:19 +00:00
|
|
|
"--build" ipkg
|
|
|
|
;; only trigger a build, as --ibcsubdir
|
|
|
|
;; already installs .ibc files.
|
|
|
|
|
2016-12-15 11:35:20 +00:00
|
|
|
(apply append (map (lambda (path)
|
|
|
|
(list "--idrispath"
|
|
|
|
path))
|
|
|
|
idris-path-subdirs)))))
|
|
|
|
;; FIXME: Seems to be a bug in idris that causes a dubious failure.
|
2022-04-19 03:20:27 +00:00
|
|
|
(apply system* install-cmd)))))))
|
2016-12-15 11:35:20 +00:00
|
|
|
|
|
|
|
(define-public idris-lightyear
|
|
|
|
(let ((commit "6d65ad111b4bed2bc131396f8385528fc6b3678a"))
|
|
|
|
(package
|
|
|
|
(name "idris-lightyear")
|
|
|
|
(version (git-version "0.1" "1" commit))
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/ziman/lightyear")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1pkxnn3ryr0v0cin4nasw7kgkc9dnnpja1nfbj466mf3qv5s98af"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list idris))
|
2016-12-15 11:35:20 +00:00
|
|
|
(arguments (idris-default-arguments name))
|
|
|
|
(home-page "https://github.com/ziman/lightyear")
|
|
|
|
(synopsis "Lightweight parser combinator library for Idris")
|
|
|
|
(description "Lightweight parser combinator library for Idris, inspired
|
|
|
|
by Parsec. This package is used (almost) the same way as Parsec, except for one
|
|
|
|
difference: backtracking.")
|
|
|
|
(license license:bsd-2))))
|
2017-01-02 17:03:25 +00:00
|
|
|
|
|
|
|
(define-public idris-wl-pprint
|
|
|
|
(let ((commit "1d365fcf4ba075859844dbc5eb96a90f57b9f338"))
|
|
|
|
(package
|
|
|
|
(name "idris-wl-pprint")
|
|
|
|
(version (git-version "0.1" "1" commit))
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/shayan-najd/wl-pprint")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0g7c3y9smifdz4sivi3qmvymhdr7v9kfq45fmfmmvkqcrix0spzn"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list idris))
|
2017-01-02 17:03:25 +00:00
|
|
|
(arguments (idris-default-arguments name))
|
|
|
|
(home-page "https://github.com/shayan-najd/wl-pprint")
|
|
|
|
(synopsis "Pretty printing library")
|
|
|
|
(description "A pretty printing library for Idris based on Phil Wadler's
|
|
|
|
paper A Prettier Printer and on Daan Leijen's extensions in the Haskell
|
|
|
|
wl-pprint library.")
|
|
|
|
(license license:bsd-2))))
|
2017-01-02 17:05:21 +00:00
|
|
|
|
|
|
|
(define-public idris-bifunctors
|
|
|
|
(let ((commit "53d06a6ccfe70c49c9ae8c8a4135981dd2173202"))
|
|
|
|
(package
|
|
|
|
(name "idris-bifunctors")
|
|
|
|
(version (git-version "0.1" "1" commit))
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/HuwCampbell/Idris-Bifunctors")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (string-append name "-" version "-checkout"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"02vbsd3rmgnj0l1qq787709qcxjbr9890cbad4ykn27f77jk81h4"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list idris))
|
2017-01-02 17:05:21 +00:00
|
|
|
(arguments (idris-default-arguments name))
|
|
|
|
(home-page "https://github.com/HuwCampbell/Idris-Bifunctors")
|
|
|
|
(synopsis "Bifunctor library")
|
|
|
|
(description "This is a bifunctor library for Idris based off the
|
|
|
|
excellent Haskell Bifunctors package from Edward Kmett.")
|
|
|
|
(license license:bsd-3))))
|
2017-01-02 17:06:25 +00:00
|
|
|
|
|
|
|
(define-public idris-lens
|
|
|
|
(let ((commit "26f012005f6849806cea630afe317e42cae97f29"))
|
|
|
|
(package
|
|
|
|
(name "idris-lens")
|
|
|
|
(version (git-version "0.1" "1" commit))
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/HuwCampbell/idris-lens")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"06jzfj6rad08rk92w8jk5byi79svmyg0mrcqhibgx8rkjjy6vmai"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list idris))
|
2017-01-02 17:06:25 +00:00
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list idris-bifunctors))
|
2017-01-02 17:06:25 +00:00
|
|
|
(arguments (idris-default-arguments name))
|
|
|
|
(home-page "https://github.com/HuwCampbell/idris-lens")
|
|
|
|
(synopsis "Van Laarhoven lenses for Idris")
|
|
|
|
(description "Lenses are composable functional references. They allow
|
|
|
|
accessing and modifying data within a structure.")
|
|
|
|
(license license:bsd-3))))
|