nixpkgs/pkgs/by-name/ha/harmonist/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

32 lines
1.0 KiB
Nix

{lib, fetchurl, buildGoModule}:
buildGoModule rec {
pname = "harmonist";
version = "0.5.1";
src = fetchurl {
url = "https://download.tuxfamily.org/harmonist/releases/${pname}-${version}.tar.gz";
hash = "sha256-NkUrBvOOs6yctW4CVRpJNcdfdPvUJZp9HaWLS7eO4yE=";
};
vendorHash = "sha256-0DV32a2LYnfYzg/tqwear9uaaahNUIi0M8uWlXOQ5Ic=";
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "Stealth coffee-break roguelike game";
mainProgram = "harmonist";
longDescription = ''
Harmonist is a stealth coffee-break roguelike game. The game has a heavy
focus on tactical positioning, light and noise mechanisms, making use of
various terrain types and cones of view for monsters. Aiming for a
replayable streamlined experience, the game avoids complex inventory
management and character building, relying on items and player
adaptability for character progression.
'';
homepage = "https://harmonist.tuxfamily.org/";
license = licenses.isc;
maintainers = [ ];
};
}