Skip to content

Commit 2c17a6d

Browse files
committed
Add GHC 8.6.1 alpha
1 parent b9ae499 commit 2c17a6d

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

8.6.1-alpha1/ghc/ghc.nuspec

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Do not remove this test for UTF-8: if ??? doesn?t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
3+
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
4+
<metadata>
5+
<!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages -->
6+
<id>ghc</id>
7+
<title>GHC</title>
8+
<version>8.6.1-alpha1</version>
9+
<authors>GHC Team</authors>
10+
<owners>Tamar Christina</owners>
11+
<summary>GHC is a state-of-the-art, open source, compiler and interactive environment for the functional language Haskell.</summary>
12+
<description>Highlights:
13+
• GHC supports the entire Haskell 2010 language plus a wide variety of extensions.
14+
• GHC has particularly good support for concurrency and parallelism, including support for Software Transactional Memory (STM).
15+
• GHC generates fast code, particularly for concurrent programs. Take a look at GHC's performance on The Computer Language Benchmarks Game.
16+
• GHC works on several platforms including Windows, Mac, Linux, most varieties of Unix, and several different processor architectures. There are detailed instructions for porting GHC to a new platform.
17+
• GHC has extensive optimisation capabilities, including inter-module optimisation.
18+
• GHC compiles Haskell code either directly to native code or using LLVM as a back-end. GHC can also generate C code as an intermediate target for porting to new platforms. The interactive environment compiles Haskell to bytecode, and supports execution of mixed bytecode/compiled programs.
19+
• Profiling is supported, both by time/allocation and various kinds of heap profiling.
20+
• GHC comes with several libraries, and thousands more are available on Hackage. </description>
21+
<projectUrl>https://www.haskell.org/ghc/</projectUrl>
22+
<tags>ghc haskell</tags>
23+
<copyright>Copyright 2017, The University Court of the University of Glasgow.</copyright>
24+
<licenseUrl>https://www.haskell.org/ghc/license</licenseUrl>
25+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
26+
<!-- Important note about https://cdn.rawgit.com: Files are cached permanently after the first request. Use commit URLs when updating the icon. -->
27+
<iconUrl>http://upload.wikimedia.org/wikipedia/commons/thumb/1/1c/Haskell-Logo.svg/2000px-Haskell-Logo.svg.png</iconUrl>
28+
<dependencies>
29+
<dependency id="cabal" version="2.2.0.0" />
30+
</dependencies>
31+
<releaseNotes>https://github.com/ghc/ghc/blob/ghc-8.6/docs/users_guide/8.6.1-notes.rst</releaseNotes>
32+
<docsUrl>https://downloads.haskell.org/~ghc/8.6.1-alpha1/docs/html/</docsUrl>
33+
<mailingListUrl>https://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</mailingListUrl>
34+
<bugTrackerUrl>https://ghc.haskell.org/trac/ghc/</bugTrackerUrl>
35+
<projectSourceUrl>https://www.haskell.org/ghc/</projectSourceUrl>
36+
</metadata>
37+
<files>
38+
<file src="tools\**" target="tools" />
39+
</files>
40+
</package>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
$version = 'ghc-8.6.0.20180627'
2+
$packageName = 'ghc'
3+
$url = 'https://downloads.haskell.org/~ghc/8.6.1-alpha1/ghc-8.6.0.20180627-i386-unknown-mingw32.tar.xz'
4+
$url64 = 'https://downloads.haskell.org/~ghc/8.6.1-alpha1/ghc-8.6.0.20180627-x86_64-unknown-mingw32.tar.xz'
5+
6+
$binRoot = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
7+
$packageFullName = Join-Path $binRoot ($packageName + '-' + $version)
8+
$binPackageDir = Join-Path $packageFullName "bin"
9+
10+
$tmpPath = Join-Path $env:chocolateyPackageFolder tmp
11+
$tarFile = $packageName + "Install"
12+
$tarPath = Join-Path $tmpPath $tarFile
13+
$tmpFile = Join-Path $binRoot ($tarFile + "~")
14+
15+
Get-ChocolateyWebFile -PackageName $packageName -FileFullPath $tarPath -Url $url -ChecksumType sha256 -Checksum 6cc739c10335c757e11a4fbdea8667c3ab6d8cce52e6d4b38cc21f3c45b55d9e -Url64bit $url64 -ChecksumType64 sha256 -Checksum64 ccff1f896425f932581c804e1fd6dd14dea7b7423f7f4970ff1d99ab03c97504
16+
Get-ChocolateyUnzip -fileFullPath $tarPath -destination $binRoot
17+
Get-ChocolateyUnzip -fileFullPath $tmpFile -destination $binRoot
18+
rm $tmpFile # Clean up temporary file
19+
20+
Install-ChocolateyPath "$binPackageDir"
21+
22+
Write-Host "Hiding shims for `'$binRoot`'."
23+
$files = get-childitem $binRoot -include *.exe -recurse
24+
25+
foreach ($file in $files) {
26+
#generate an ignore file
27+
New-Item "$file.ignore" -type file -force | Out-Null
28+
}

0 commit comments

Comments
 (0)