#!/usr/bin/env ruby # encoding: utf-8 from "xena/alpine" # update envvars env "PATH" => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/nim/bin:/root/.nimble/bin", "NIM_VERSION" => "0.16.0" # system deps run %q[ apk add --no-cache --virtual nim-compiler-deps wget libc-dev gcc libgcc git perl xz tar \ && apk add --no-cache libressl ca-certificates libcrypto1.0 libssl1.0 ] # download and build nim and nimble run %q[ mkdir -p /opt && cd /opt \ && wget https://nim-lang.org/download/nim-$NIM_VERSION.tar.xz \ && /usr/bin/tar xJf nim-$NIM_VERSION.tar.xz && rm -f nim-$NIM_VERSION.tar.xz \ && mv nim-$NIM_VERSION nim && cd nim \ && sh build.sh \ && cd .. && git clone https://github.com/nim-lang/nimble.git \ && cd nimble && nim -d:release c -r src/nimble -y install ] # shipit flatten tag "xena/nim:0.16.0"