-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
106 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM quay.io/condaforge/linux-anvil-cos7-x86_64 | ||
|
||
RUN yum -y update | ||
RUN yum -y install zlib-devel wget ncurses-devel ncurses-compat-libs make gcc gcc-c++ | ||
|
||
# Install GHC since stack's local install has issues | ||
RUN wget https://downloads.haskell.org/~ghc/9.4.7/ghc-9.4.7-x86_64-centos7-linux.tar.xz | ||
RUN tar xvf ghc-9.4.7-x86_64-centos7-linux.tar.xz | ||
RUN cd ghc-9.4.7-x86_64-unknown-linux; ./configure; make install | ||
|
||
# install stack | ||
RUN curl -sSL https://get.haskellstack.org/ | sh | ||
|
||
# add source directory | ||
ADD . source | ||
WORKDIR source | ||
|
||
# install | ||
# - as described in cryptonite README, cryptoniate requires disabling "use_target_attributes" | ||
# - for bitvec the "simd" flag added in v1.1.5.0 has to be deactivated - the gcc version here does not seem to support it | ||
RUN stack install --system-ghc --flag cryptonite:-use_target_attributes --flag bitvec:-simd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters