4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{lib, stdenv, fetchurl, buildGoPackage}:
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "harmonist";
|
|
version = "0.3.0";
|
|
|
|
goPackagePath = "git.tuxfamily.org/harmonist/harmonist.git";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.tuxfamily.org/harmonist/releases/${pname}-${version}.tar.gz";
|
|
sha256 = "16bh4zzq7szwcw19n34bslkf81fz3i0p4zqkd8gdi5ixkbm998lm";
|
|
};
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
postInstall = "mv $out/bin/harmonist.git $out/bin/harmonist";
|
|
|
|
meta = with lib; {
|
|
description = "A stealth coffee-break roguelike game";
|
|
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;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [freepotion];
|
|
};
|
|
}
|