easyblock = 'Tarball'

# note: only works on recent OSs, required local_sufficiently recent glibc (2.14
# or newer)
name = 'dotNET-Core-SDK'
version = '2.1.402'

homepage = 'https://www.microsoft.com/net/'
description = """.NET is a free, cross-platform, open source developer platform for building many different types
 of applications."""

toolchain = SYSTEM

source_urls = [
    'https://download.microsoft.com/download/8/A/7/8A765126-50CA-4C6F-890B-19AE47961E4B']
sources = ['dotnet-sdk-%(version)s-linux-x64.tar.gz']

dependencies = [('libunwind', '1.2')]

sanity_check_paths = {
    'files': ['dotnet'],
    'dirs': ['sdk'],
}

modextrapaths = {'PATH': ['']}

moduleclass = 'lang'