Downloads:

2,954

Downloads of v 3.6.6.2021125:

95

Last Update:

23 May 2021

Package Maintainer(s):

Software Author(s):

  • Nethack Developers

Tags:

nethack game rogue roguelike rogue-like

Nethack - Single Player Dungeon Exploration

  • 1
  • 2
  • 3

3.6.6.2021125 | Updated: 23 May 2021

Downloads:

2,954

Downloads of v 3.6.6.2021125:

95

Maintainer(s):

Software Author(s):

  • Nethack Developers

  • 1
  • 2
  • 3
Nethack - Single Player Dungeon Exploration 3.6.6.2021125

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged as a Note:

At least one file within this package has greater than 0 detections, but less than 5

Details

To install Nethack - Single Player Dungeon Exploration, run the following command from the command line or from PowerShell:

>

To upgrade Nethack - Single Player Dungeon Exploration, run the following command from the command line or from PowerShell:

>

To uninstall Nethack - Single Player Dungeon Exploration, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://community.chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade nethack -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade nethack -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure nethack installed
  win_chocolatey:
    name: nethack
    state: present
    version: 3.6.6.2021125
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'nethack' do
  action    :install
  version  '3.6.6.2021125'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: nethack,
    Version: 3.6.6.2021125,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller nethack
{
   Name     = 'nethack'
   Ensure   = 'Present'
   Version  = '3.6.6.2021125'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'nethack':
  provider => 'chocolatey',
  ensure   => '3.6.6.2021125',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install nethack version="3.6.6.2021125" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 23 May 2021.

Description

NetHack is a single player dungeon exploration game that runs on a wide variety of computer systems, with a variety of
graphical and text interfaces all using the same game engine. Unlike many other Dungeons & Dragons-inspired games,
the emphasis in NetHack is on discovering the detail of the dungeon and not simply killing everything in sight - in
fact, killing everything in sight is a good way to die quickly. Each game presents a different landscape - the random
number generator provides an essentially unlimited number of variations of the dungeon and its denizens to be
discovered by the player in one of a number of characters: you can pick your race, your role, and your gender.

screenshot

Package Parameters

The following package parameter can be set:

  • /AddToDesktop - add desktop shortcuts for Nethack. By default the shortcuts will be added for all users
    e.g. choco install nethack --package-parameters="/AddToDesktop"
  • /AddToStartMenu - add entries to the Start Menu for Nethack. By default the shortcut will be added for
    all users e.g. choco install nethack --package-parameters="/AddToStartMenu"
  • /User - where the user parameter is specified any shortcuts created (using /AddToDesktop or /AddToStartMenu)
    will only be added for the current user
    e.g. choco install nethack --package-parameters="/AddToDesktop /User"

To have Chocolatey remember parameters on upgrade, be sure to set choco feature enable -n=useRememberedArgumentsForUpgrades.

Notes

  • Two versions of Nethack will be installed by the package - Nethack and Nethack Classic. The underlying game engine
    is the same but Nethack presents a Windows interface with graphical tiles while Nethack Classic provides the traditional
    console experience
  • This package is automatically updated using the Chocolatey Automatic Package Update Model (AU).
    If you find it is out of date by more than a day or two, please contact the maintainer(s) and let them know the package is no longer updating correctly.

legal\LICENSE.txt
                    NETHACK GENERAL PUBLIC LICENSE
                    (Copyright 1989 M. Stephenson)

               (Based on the BISON general public license,
                   copyright 1988 Richard M. Stallman)

 Everyone is permitted to copy and distribute verbatim copies of this
 license, but changing it is not allowed.  You can also use this wording to
 make the terms for other programs.

  The license agreements of most software companies keep you at the mercy of
those companies.  By contrast, our general public license is intended to give
everyone the right to share NetHack.  To make sure that you get the rights we
want you to have, we need to make restrictions that forbid anyone to deny you
these rights or to ask you to surrender the rights.  Hence this license
agreement.

  Specifically, we want to make sure that you have the right to give away
copies of NetHack, that you receive source code or else can get it if you
want it, that you can change NetHack or use pieces of it in new free
programs, and that you know you can do these things.

  To make sure that everyone has such rights, we have to forbid you to
deprive anyone else of these rights.  For example, if you distribute copies
of NetHack, you must give the recipients all the rights that you have.  You
must make sure that they, too, receive or can get the source code.  And you
must tell them their rights.

  Also, for our own protection, we must make certain that everyone finds out
that there is no warranty for NetHack.  If NetHack is modified by someone
else and passed on, we want its recipients to know that what they have is
not what we distributed.

  Therefore we (Mike Stephenson and other holders of NetHack copyrights) make
the following terms which say what you must do to be allowed to distribute or
change NetHack.


                        COPYING POLICIES

  1. You may copy and distribute verbatim copies of NetHack source code as
you receive it, in any medium, provided that you keep intact the notices on
all files that refer to copyrights, to this License Agreement, and to the
absence of any warranty; and give any other recipients of the NetHack
program a copy of this License Agreement along with the program.

  2. You may modify your copy or copies of NetHack or any portion of it, and
copy and distribute such modifications under the terms of Paragraph 1 above
(including distributing this License Agreement), provided that you also do the
following:

    a) cause the modified files to carry prominent notices stating that you
    changed the files and the date of any change; and

    b) cause the whole of any work that you distribute or publish, that in
    whole or in part contains or is a derivative of NetHack or any part
    thereof, to be licensed at no charge to all third parties on terms
    identical to those contained in this License Agreement (except that you
    may choose to grant more extensive warranty protection to some or all
    third parties, at your option)

    c) You may charge a distribution fee for the physical act of
    transferring a copy, and you may at your option offer warranty protection
    in exchange for a fee.

  3. You may copy and distribute NetHack (or a portion or derivative of it,
under Paragraph 2) in object code or executable form under the terms of
Paragraphs 1 and 2 above provided that you also do one of the following:

    a) accompany it with the complete machine-readable source code, which
    must be distributed under the terms of Paragraphs 1 and 2 above; or,

    b) accompany it with full information as to how to obtain the complete
    machine-readable source code from an appropriate archive site.  (This
    alternative is allowed only for noncommercial distribution.)

For these purposes, complete source code means either the full source
distribution as originally released over Usenet or updated copies of the
files in this distribution used to create the object code or executable.

  4. You may not copy, sublicense, distribute or transfer NetHack except as
expressly provided under this License Agreement.  Any attempt otherwise to
copy, sublicense, distribute or transfer NetHack is void and your rights to
use the program under this License agreement shall be automatically
terminated.  However, parties who have received computer software programs
from you with this License Agreement will not have their licenses terminated
so long as such parties remain in full compliance.


Stated plainly:  You are permitted to modify NetHack, or otherwise use parts
of NetHack, provided that you comply with the conditions specified above;
in particular, your modified NetHack or program containing parts of NetHack
must remain freely available as provided in this License Agreement.  In
other words, go ahead and share NetHack, but don't try to stop anyone else
from sharing it farther.
legal\VERIFICATION.txt
VERIFICATION

Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

The application has been downloaded from the official distribution and can
be verified by:

1. Go to the binary distribution page

  https://nethack.org/v366/ports/download-win.html

and download the archive nethack-366-win-x86-1_25_2021.zip using the 'Download this file' link
on the page.

Alternatively the archive can be downloaded directly from

  https://nethack.org/download/3.6.6.2021125/nethack-366-win-x86-1_25_2021.zip

2. The archive can be validated by comparing checksums
  - Use powershell function 'Get-Filehash' - Get-Filehash -algorithm sha256 nethack-366-win-x86-1_25_2021.zip
  - Use chocolatey utility 'checksum.exe'  - checksum -t sha256 -f nethack-366-win-x86-1_25_2021.zip

  File:     nethack-366-win-x86-1_25_2021.zip
  Type:     sha256
  Checksum: C0B18D87495DEA71E1302DFB00B319B7025FA4935CA6B78089C69CE1A2F358E3

Contents of file LICENSE.txt is obtained from https://nethack.org/common/license.html
tools\chocolateyBeforeModify.ps1
$ErrorActionPreference = 'Stop'

$nethackLink        = 'Nethack.lnk'
$nethackClassicLink = 'Nethack (Classic).lnk'

$desktop         = [Environment]::GetFolderPath('Desktop')
$commonDesktop   = [Environment]::GetFolderPath('CommonDesktopDirectory')
$startMenu       = [Environment]::GetFolderPath('StartMenu')
$commonStartMenu = [Environment]::GetFolderPath('CommonStartMenu')

$paths = @(
  (Join-Path $desktop $nethackLink),
  (Join-Path $desktop $nethackClassicLink),
  (Join-Path $commonDesktop $nethackLink),
  (Join-Path $commonDesktop $nethackClassicLink),
  (Join-Path $startMenu 'NetHack' | Join-Path -childpath $nethackLink),
  (Join-Path $startMenu 'NetHack' | Join-Path -childpath $nethackClassicLink),
  (Join-Path $startMenu 'NetHack'),
  (Join-Path $commonStartMenu 'NetHack' | Join-Path -childpath $nethackLink),
  (Join-Path $commonStartMenu 'NetHack' | Join-Path -childpath $nethackClassicLink)
  (Join-Path $commonStartMenu 'NetHack')
)

$paths.GetEnumerator() | ForEach-Object {
  if (Test-Path -Path $_) {
    Remove-Item $_ -ErrorAction SilentlyContinue -Force | Out-Null
  }
}
tools\chocolateyInstall.ps1
$ErrorActionPreference = 'Stop'

$toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition
$archive  = Join-Path $toolsDir 'nethack-366-win-x86-1_25_2021.zip'

$unzipArgs = @{
  PackageName  = $env:ChocolateyPackageName
  FileFullPath = $archive
  Destination  = $toolsDir
}

Get-ChocolateyUnzip @unzipArgs

$pp = Get-PackageParameters

$paths = New-Object System.Collections.ArrayList

if ($pp.count -gt 0) {
  $pp.GetEnumerator() | foreach-object {
    switch ($_.name) {
        'AddToDesktop' {
          Write-Verbose("Desktop shortcuts will be created for $env:ChocolateyPackageName")
          if ($pp.User) {
            $desktopPath = [Environment]::GetFolderPath('Desktop')
          } else {
            $desktopPath = [Environment]::GetFolderPath('CommonDesktopDirectory')
          }

          $paths.add($desktopPath) | Out-Null
        }
        'AddToStartMenu' {
          Write-Verbose("$env:ChocolateyPackageName will be added to the Start Menu")
          if ($pp.User) {
            $startMenuPath = [Environment]::GetFolderPath('StartMenu')
          } else {
            $startMenuPath = [Environment]::GetFolderPath('CommonStartMenu')
          }

          $startMenuFolder = Join-Path $startMenuPath 'NetHack'
          if (-Not (Test-Path -PathType Container $startMenuFolder)) {
            New-Item -Path $startMenuFolder -ItemType directory -Force | Out-Null
          }
          
          $paths.Add($startMenuFolder) | Out-Null
        }
        'User' {
          # ignore - no need to handle independently as it is a qualifier for other options
        }
        Default {
          Write-Verbose("Unknown parameter $_.name will be ignored")
        }
    }
  }

  if ($paths.Count -gt 0) {
    $executable        = Join-Path $toolsDir 'NetHack.exe'
    $classicExecutable = Join-Path $toolsDir 'NetHackW.exe'
    $icon              = Join-Path $toolsDir 'nethack.ico'
    
    $paths.GetEnumerator() | foreach-object {
      $shortcutPath = Join-Path $_ 'Nethack.lnk'
      Install-ChocolateyShortcut -ShortcutFilePath $shortcutPath -TargetPath $executable -IconLocation $icon

      $shortcutPath = Join-Path $_ 'Nethack (Classic).lnk'
      Install-ChocolateyShortcut -ShortcutFilePath $shortcutPath -TargetPath $classicExecutable -IconLocation $icon
    }
  }
}
tools\nethack-366-win-x86-1_25_2021.zip
md5: 0464442673E1E7AFF3BE5CA3AF174C5A | sha1: 0F558F9FBD086A88DCA414FD6AF57B1F9DC82DC0 | sha256: C0B18D87495DEA71E1302DFB00B319B7025FA4935CA6B78089C69CE1A2F358E3 | sha512: 05B7D32A0C683E4EF7002D1469666F0B0B8BAEB1B5678B61AE4BFC63F04560C4DF4C18C3D8D554F38D48E9DDC010B87C2D8C0B875C70688A317DA16E821E390E
tools\nethack.ico
 

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
Nethack - Single Player Dungeon Exploration 3.6.6 7 Sunday, May 23, 2021 Approved
Nethack - Single Player Dungeon Exploration 3.6.5 8 Sunday, May 23, 2021 Approved
Nethack - Single Player Dungeon Exploration 3.6.4.20191221 6 Sunday, May 23, 2021 Approved
Nethack - Single Player Dungeon Exploration 3.6.4 8 Sunday, May 23, 2021 Approved
Nethack - Single Player Dungeon Exploration 3.6.3 13 Sunday, May 23, 2021 Approved
NetHack 3.6.2 744 Friday, June 7, 2019 Approved
NetHack 3.6.1 436 Monday, December 24, 2018 Approved
NetHack 3.6.0.1 727 Friday, February 3, 2017 Approved
NetHack 3.6.0 460 Monday, April 4, 2016 Approved

This package has no dependencies.

Discussion for the Nethack - Single Player Dungeon Exploration Package

Ground Rules:

  • This discussion is only about Nethack - Single Player Dungeon Exploration and the Nethack - Single Player Dungeon Exploration package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Nethack - Single Player Dungeon Exploration, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus