# SPDX-License-Identifier: CC0-1.0 language = 'D' display = 'D (LDC 1.41.0)' license = [ { name = 'BSD-3-Clause', url = 'https://github.com/ldc-developers/ldc/blob/master/LICENSE' }, { name = 'BSL-1.0', url = 'https://github.com/ldc-developers/ldc/blob/master/LICENSE' }, { name = 'Apache-2.0', url = 'https://github.com/ldc-developers/ldc/blob/master/LICENSE' }, { name = 'GPL-2.0-or-later', url = 'https://github.com/ldc-developers/ldc/blob/master/LICENSE' }, { name = 'MIT', url = 'https://github.com/ldc-developers/ldc/blob/master/LICENSE' }, { name = 'Artistic-1.0', url = 'https://github.com/ldc-developers/ldc/blob/master/LICENSE' }, { name = 'GPL-1.0-only', url = 'https://github.com/ldc-developers/ldc/blob/master/LICENSE' }, ] library.mir = { license = [ { name = 'BSL-1.0', url = 'https://github.com/libmir/mir/blob/master/LICENSE.txt' }, ], version = '3.2.3' } filename = 'source/app.d' install = ''' sudo apt update sudo apt-get install -y --no-install-recommends curl build-essential ca-certificates libxml2 D_COMPLILER="ldc-1.41.0" wget https://dlang.org/install.sh -O /tmp/install.sh chmod +x /tmp/install.sh /tmp/install.sh install ${D_COMPLILER} sudo ln -s $(/tmp/install.sh get-path ${D_COMPLILER}) /usr/local/bin/ldc2 sudo ln -s $(/tmp/install.sh get-path --dmd ${D_COMPLILER}) /usr/local/bin/ldmd2 sudo ln -s $(/tmp/install.sh get-path --dub ${D_COMPLILER}) /usr/local/bin/dub dub init -n dub add mir@3.2.3 dub build --build=release-nobounds rm judge source/app.d ''' compile = ''' dub build --skip-registry=all --nodeps --build=release-nobounds ''' object = 'judge' execution = [ './judge', ]