浏览代码

Fix breaking Nim builds (#4073)

Nate 7 年之前
父节点
当前提交
5837491c01

+ 1 - 8
frameworks/Nim/httpbeast/httpbeast.dockerfile

@@ -1,11 +1,4 @@
-FROM gcc:latest
-
-RUN apt update && apt install -y libgc-dev
-
-ENV CHOOSENIM_NO_ANALYTICS 1
-ENV CHOOSENIM_CHOOSE_VERSION #0c683d28bbd5
-RUN curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y
-ENV PATH $PATH:/root/.nimble/bin
+FROM nimlang/nim:0.19.0
 
 ADD ./ /httpbeast
 WORKDIR /httpbeast

+ 2 - 2
frameworks/Nim/httpbeast/techempower.nimble

@@ -10,5 +10,5 @@ skipExt = @["nim"]
 
 # Dependencies
 
-requires "nim >= 0.18.0"
-requires "httpbeast#v0.2.0"
+requires "nim >= 0.19.0"
+requires "httpbeast#v0.2.1"

+ 2 - 9
frameworks/Nim/jester/jester.dockerfile

@@ -1,15 +1,8 @@
-FROM gcc:latest
-
-RUN apt update && apt install -y libgc-dev
-
-ENV CHOOSENIM_NO_ANALYTICS 1
-ENV CHOOSENIM_CHOOSE_VERSION #0c683d28bbd5
-RUN curl https://nim-lang.org/choosenim/init.sh -sSf | sh -s -- -y
-ENV PATH $PATH:/root/.nimble/bin
+FROM nimlang/nim:0.19.0
 
 ADD ./ /jester
 WORKDIR /jester
-RUN nimble install -y httpbeast@#v0.2.0
+RUN nimble install -y httpbeast@#v0.2.1
 RUN nimble c -d:release --threads:on -y techempower.nim
 
 CMD ./techempower

+ 2 - 2
frameworks/Nim/jester/techempower.nimble

@@ -10,5 +10,5 @@ skipExt = @["nim"]
 
 # Dependencies
 
-requires "nim >= 0.18.0"
-requires "jester#v0.4.0"
+requires "nim >= 0.19.0"
+requires "jester#v0.4.1"