diff --git a/srcpkgs/ghcup-hs/files/cabal.project.freeze b/srcpkgs/ghcup-hs/files/cabal.project.freeze new file mode 100644 index 00000000000000..4664daec04dd82 --- /dev/null +++ b/srcpkgs/ghcup-hs/files/cabal.project.freeze @@ -0,0 +1,279 @@ +active-repositories: hackage.haskell.org:merge +constraints: any.Cabal ==3.14.2.0, + any.Cabal-syntax ==3.14.2.0, + any.Diff ==1.0.2, + any.HUnit ==1.6.2.0, + any.OneTuple ==0.4.3, + OneTuple +base-ge-4-15 +base-ge-4-16, + any.QuickCheck ==2.15.0.1, + QuickCheck -old-random +templatehaskell, + any.StateVar ==1.2.2, + any.aeson ==2.2.5.0, + aeson +ordered-keymap, + any.aeson-pretty ==0.8.10, + aeson-pretty +lib-only, + any.alex ==3.5.4.2, + any.ansi-terminal ==1.1.5, + ansi-terminal -example, + any.ansi-terminal-types ==1.1.3, + any.array ==0.5.8.0, + any.assoc ==1.1.1, + assoc -tagged, + any.async ==2.2.6, + async -bench -debug-auto-label, + any.atomic-counter ==0.1.2.4, + atomic-counter -dev -no-cmm, + any.atomic-write ==0.2.1.1, + any.attoparsec ==0.14.4, + attoparsec -developer, + any.base ==4.19.2.0, + any.base-compat ==0.15.0, + any.base-orphans ==0.9.4, + any.base16-bytestring ==1.0.2.0, + any.base64-bytestring ==1.2.1.0, + any.bifunctors ==5.6.3, + bifunctors +tagged, + any.bimap ==0.5.0, + any.binary ==0.8.9.1, + any.bindings-DSL ==1.0.25, + any.bitvec ==1.1.6.0, + bitvec +simd, + any.blaze-builder ==0.4.4.1, + any.brick ==2.12, + brick -demos, + any.bytestring ==0.12.1.0, + any.bz2 ==1.0.1.2, + bz2 -cross +with-bzlib, + any.bzlib-conduit ==0.3.0.4, + bzlib-conduit +system-bzip2, + any.c2hs ==0.28.8, + c2hs +base3 -regression, + any.call-stack ==0.4.0, + any.case-insensitive ==1.2.1.0, + any.casing ==0.1.4.1, + any.cborg ==0.2.10.0, + cborg +optimize-gmp, + any.cborg-json ==0.2.6.0, + any.cereal ==0.5.8.3, + cereal -bytestring-builder, + any.character-ps ==0.1, + any.charset ==0.3.12, + any.clock ==0.8.4, + clock -llvm, + any.colour ==2.3.7, + any.comonad ==5.0.10, + comonad +containers +distributive +indexed-traversable, + any.conduit ==1.3.6.1, + any.conduit-extra ==1.3.8, + any.conduit-zstd ==0.0.2.0, + any.config-ini ==0.2.7.0, + config-ini -enable-doctests, + any.containers ==0.6.8, + any.contravariant ==1.5.6, + contravariant +statevar, + any.cryptohash-sha256 ==0.11.102.1, + cryptohash-sha256 -exe +use-cbits, + any.data-clist ==0.2, + any.data-default ==0.8.0.2, + any.data-default-class ==0.2.0.0, + any.data-fix ==0.3.4, + any.deepseq ==1.5.1.0, + any.dhall ==1.42.3, + dhall -cross -network-tests +use-http-client-tls -with-http, + any.digest ==0.0.2.1, + digest -have_arm64_crc32c -have_builtin_prefetch -have_mm_prefetch -have_sse42 -have_strong_getauxval -have_weak_getauxval +pkg-config, + any.directory ==1.3.8.5, + directory +os-string, + any.directory-ospath-streaming ==0.3, + directory-ospath-streaming +os-string, + any.disk-free-space ==0.1.0.1, + any.distributive ==0.6.3, + distributive +tagged, + any.dlist ==1.0, + dlist -werror, + any.dotgen ==0.4.3, + dotgen -devel, + any.either ==5.0.3, + any.exceptions ==0.10.7, + any.extra ==1.8.1, + any.file-io ==0.2.0, + file-io +long-paths +os-string, + any.file-uri ==0.1.0.0, + any.filepath ==1.5.5.0, + filepath -cpphs, + any.filepattern ==0.1.3, + any.free ==5.2, + any.generic-arbitrary ==1.0.1.2, + any.ghc-bignum ==1.3, + any.ghc-boot-th ==9.8.4, + any.ghc-prim ==0.11.0, + ghcup +dhall -dhall-tests -internal-downloader -no-exe -strict-metadata-parsing +tar +tui -yaml-streamly, + any.half ==0.3.3, + any.happy ==2.2, + any.happy-lib ==2.2, + any.hashable ==1.5.1.0, + hashable -arch-native -random-initial-seed, + any.haskeline ==0.8.4.1, + haskeline +examples +terminfo, + any.haskell-lexer ==1.2.1, + any.hsc2hs ==0.68.10, + hsc2hs -in-ghc-tree, + any.hspec ==2.11.17, + any.hspec-core ==2.11.17, + any.hspec-discover ==2.11.17, + any.hspec-expectations ==0.8.4, + any.hspec-golden ==0.2.2.0, + any.hspec-golden-aeson ==0.9.0.0, + any.indexed-profunctors ==0.1.1.1, + any.indexed-traversable ==0.1.5, + indexed-traversable +base-ge-4-18, + any.indexed-traversable-instances ==0.1.2.1, + any.integer-conversion ==0.1.1, + any.integer-logarithms ==1.0.5, + integer-logarithms -check-bounds +integer-gmp, + any.language-c ==0.10.2, + language-c +iecfpextension +usebytestrings, + any.libyaml ==0.1.4, + libyaml -no-unicode -system-libyaml, + any.libyaml-clib ==0.2.5, + any.megaparsec ==9.7.1, + megaparsec -dev, + any.microlens ==0.4.14.0, + any.microlens-mtl ==0.2.1.0, + any.microlens-th ==0.4.3.17, + any.mmorph ==1.2.2, + any.monad-control ==1.0.3.1, + any.mono-traversable ==1.0.21.0, + any.mtl ==2.3.1, + any.mtl-compat ==0.2.2, + mtl-compat -two-point-one -two-point-two, + any.network ==3.2.8.0, + network -devel, + any.network-uri ==2.6.4.2, + any.optics ==0.4.2.1, + any.optics-core ==0.4.2, + optics-core -explicit-generic-labels, + any.optics-extra ==0.4.2.1, + any.optics-th ==0.4.1, + any.optparse-applicative ==0.19.0.0, + optparse-applicative +process, + any.os-release ==1.0.2.1, + os-release -devel, + any.os-string ==2.0.10, + any.parsec ==3.1.17.0, + any.parser-combinators ==1.3.1, + parser-combinators -dev, + any.parsers ==0.12.12, + parsers +attoparsec +binary +parsec, + any.pretty ==1.1.3.6, + any.pretty-simple ==4.1.4.0, + pretty-simple -buildexample +buildexe, + any.pretty-terminal ==0.1.0.0, + any.prettyprinter ==1.7.2, + prettyprinter -buildreadme +text, + any.prettyprinter-ansi-terminal ==1.1.4, + prettyprinter-ansi-terminal +text, + any.primitive ==0.9.1.0, + any.process ==1.6.29.0, + process +os-string, + any.profunctors ==5.6.3, + any.quickcheck-arbitrary-adt ==0.3.1.0, + any.quickcheck-io ==0.2.0, + any.random ==1.3.1, + any.recursion-schemes ==5.2.3, + recursion-schemes +template-haskell, + any.regex-base ==0.94.0.3, + any.regex-posix ==0.96.0.2, + regex-posix -_regex-posix-clib, + any.repline ==0.4.3.0, + any.resourcet ==1.3.0, + any.retry ==0.9.3.1, + retry -lib-werror, + any.rts ==1.0.2, + any.safe ==0.3.21, + any.safe-exceptions ==0.1.7.4, + any.scientific ==0.3.8.1, + scientific -integer-simple, + any.semialign ==1.4, + semialign +semigroupoids, + any.semigroupoids ==6.0.2, + semigroupoids +comonad +containers +contravariant +tagged +unordered-containers, + any.serialise ==0.2.6.1, + serialise +newtime15, + any.split ==0.2.5, + any.splitmix ==0.1.3.2, + splitmix -optimised-mixer, + any.stm ==2.5.3.1, + any.streaming-commons ==0.2.3.1, + streaming-commons -use-bytestring-builder, + any.strict ==0.5.1, + any.strict-base ==0.4.0.0, + any.tagged ==0.8.10, + tagged +deepseq +template-haskell, + any.tagsoup ==0.14.8, + any.tar ==0.7.1.0, + any.tasty ==1.5.4, + tasty +unix, + any.tasty-bench ==0.5, + tasty-bench +tasty, + any.tasty-hunit ==0.10.2, + any.template-haskell ==2.21.0.0, + any.temporary ==1.3, + any.terminal-size ==0.3.4, + any.terminfo ==0.4.1.6, + any.text ==2.1.1, + any.text-iso8601 ==0.1.1.1, + any.text-manipulate ==0.3.1.0, + any.text-short ==0.1.6.1, + text-short -asserts, + any.text-zipper ==0.13, + any.th-abstraction ==0.7.2.0, + any.th-compat ==0.1.7, + any.th-lift ==0.8.7, + any.th-lift-instances ==0.1.20, + any.these ==1.2.1, + any.time ==1.12.2, + any.time-compat ==1.9.9, + any.transformers ==0.6.1.0, + any.transformers-base ==0.4.6.1, + transformers-base +orphaninstances, + any.transformers-compat ==0.7.2, + transformers-compat -five +five-three -four +generic-deriving +mtl -three -two, + any.typed-process ==0.2.13.0, + any.unix ==2.8.8.0, + unix -non-portable-tests +os-string, + any.unix-bytestring ==0.4.0.4, + any.unix-compat ==0.7.4.1, + any.unliftio-core ==0.2.1.0, + any.unordered-containers ==0.2.21, + unordered-containers -debug, + any.uri-bytestring ==0.4.0.1, + uri-bytestring -lib-werror, + any.utf8-string ==1.0.2, + any.uuid-types ==1.0.6.1, + any.variant ==1.0.3, + variant +unliftio, + any.vector ==0.13.2.0, + vector +boundschecks -internalchecks -unsafechecks -wall, + any.vector-algorithms ==0.9.1.0, + vector-algorithms +bench +boundschecks -internalchecks -llvm -unsafechecks, + any.vector-stream ==0.1.0.1, + any.versions ==6.0.8, + any.vty ==6.4, + any.vty-crossplatform ==0.5.0.0, + vty-crossplatform -demos, + any.vty-unix ==0.2.0.0, + any.witherable ==0.5, + any.word-wrap ==0.5, + any.word8 ==0.1.3, + any.xz ==5.6.3, + xz +system-xz, + any.yaml ==0.11.11.2, + yaml +no-examples +no-exe, + any.zip ==2.1.0, + zip -dev -disable-bzip2 -disable-zstd, + any.zlib ==0.7.1.1, + zlib -bundled-c-zlib +non-blocking-ffi +pkg-config, + any.zstd ==0.1.3.0, + zstd +standalone +index-state: hackage.haskell.org 2026-05-26T10:17:10Z diff --git a/srcpkgs/ghcup-hs/template b/srcpkgs/ghcup-hs/template new file mode 100644 index 00000000000000..e149ab90834415 --- /dev/null +++ b/srcpkgs/ghcup-hs/template @@ -0,0 +1,36 @@ +# Template file for 'ghcup-hs' +pkgname=ghcup-hs +version=0.2.5.0 +revision=1 +archs="~i686" # cborg failing to build on i686 +build_style=cabal +build_helper="qemu" +cabal_index_state="2026-05-26T10:17:10Z" +hostmakedepends="ghc cabal-install pkg-config" +makedepends="libffi-devel ncurses-devel zlib-devel bzip2-devel openssl-devel + liblzma-devel libarchive-devel" +short_desc="Haskell toolchain installer" +maintainer="rayfadh " +license="LGPL-3.0-only" +homepage="https://www.haskell.org/ghcup/" +changelog="https://raw.githubusercontent.com/haskell/ghcup-hs/master/CHANGELOG.md" +distfiles="https://github.com/haskell/ghcup-hs/archive/v${version}.tar.gz" +checksum=e6fbf2a58f9e0ba64fd5565ae8b25eaf3ac8f2f745fea6c295661d2c94f78e75 +lib32depends="libffi-devel>=0 ncurses-devel>=0 zlib-devel>=0 bzip2-devel>=0 + openssl-devel>=0 xz>=0 libarchive-devel>=0" +nocross=yes +nopie_files="/usr/bin/ghcup" + +post_configure() { + printf 'package libarchive\n flags: +system-libarchive\n' >> cabal.project.local + printf 'constraints: xz +system-xz\n' >> cabal.project.local +} + +post_install() { + for _shell in bash zsh; do + vtargetrun ${DESTDIR}/usr/bin/ghcup \ + --${_shell}-completion-script /usr/bin/ghcup \ + > ghcup.${_shell} + vcompletion ghcup.${_shell} ${_shell} + done +}