Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Nov 18, 2024
1 parent d4a3f83 commit 8ed0192
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 41 deletions.
40 changes: 1 addition & 39 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages: ./ghcup.cabal
import: cabal.project.common

optional-packages: ./vendored/*/*.cabal

Expand All @@ -9,43 +9,5 @@ else
package ghcup
flags: +tui +tar

constraints: http-io-streams -brotli,
any.aeson >= 2.0.1.0,
any.hsc2hs >=0.68.10,
bzlib-conduit >= 0.3.0.3,
bz2 >= 1.0.1.1,
bzlib >= 0.5.2.0,
directory >= 1.3.8.3,
filepath == 1.4.101.0 || == 1.4.300.1 || >= 1.5.2.0,
tar >= 0.6.2.0

constraints: text -simdutf

if os(mingw32)
constraints: zlib +bundled-c-zlib,
text -simdutf,
vty-windows >=0.2.0.2

if impl(ghc >= 9.4)
constraints: language-c >= 0.9.3


source-repository-package
type: git
location: https://github.com/hasufell/uri-bytestring.git
tag: 4fb5ed14b500c192e6e7a97f6b2b1eb478806001

package libarchive
flags: -system-libarchive

package aeson-pretty
flags: +lib-only

package aeson
flags: +ordered-keymap

package hashable
flags: -arch-native

package *
test-show-details: direct
39 changes: 39 additions & 0 deletions cabal.project.common
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
packages: ./ghcup.cabal

constraints: http-io-streams -brotli,
any.aeson >= 2.0.1.0,
any.hsc2hs >=0.68.10,
bzlib-conduit >= 0.3.0.3,
bz2 >= 1.0.1.1,
bzlib >= 0.5.2.0,
directory >= 1.3.8.3,
filepath == 1.4.101.0 || == 1.4.300.1 || >= 1.5.2.0,
tar >= 0.6.2.0

constraints: text -simdutf

if os(mingw32)
constraints: zlib +bundled-c-zlib,
text -simdutf,
vty-windows >=0.2.0.2

if impl(ghc >= 9.4)
constraints: language-c >= 0.9.3


source-repository-package
type: git
location: https://github.com/hasufell/uri-bytestring.git
tag: 4fb5ed14b500c192e6e7a97f6b2b1eb478806001

package libarchive
flags: -system-libarchive

package aeson-pretty
flags: +lib-only

package aeson
flags: +ordered-keymap

package hashable
flags: -arch-native
4 changes: 2 additions & 2 deletions cabal.project.release
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import: cabal.project
import: cabal.project.common

optimization: 2

Expand Down Expand Up @@ -29,6 +29,6 @@ elif os(freebsd)
flags: -tar
constraints: zlib +bundled-c-zlib,
zip +disable-zstd,
xz -system-xz
xz -system-xz
package *
ghc-options: -split-sections

0 comments on commit 8ed0192

Please sign in to comment.