From e38110ab6c5fcf2195e84957f884582272d33c10 Mon Sep 17 00:00:00 2001 From: Free Potion <42352817+freepotion@users.noreply.github.com> Date: Sat, 25 May 2019 13:14:43 +0300 Subject: [PATCH] harmonist: init at 0.1 --- pkgs/games/harmonist/default.nix | 34 ++++++++++++++++++++++++++++++++ pkgs/games/harmonist/deps.nix | 20 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 56 insertions(+) create mode 100644 pkgs/games/harmonist/default.nix create mode 100644 pkgs/games/harmonist/deps.nix diff --git a/pkgs/games/harmonist/default.nix b/pkgs/games/harmonist/default.nix new file mode 100644 index 000000000000..cca17ceee5af --- /dev/null +++ b/pkgs/games/harmonist/default.nix @@ -0,0 +1,34 @@ +{stdenv, fetchurl, buildGoPackage}: + +buildGoPackage rec { + + pname = "harmonist"; + version = "0.1"; + + goPackagePath = "git.tuxfamily.org/harmonist/harmonist.git"; + + src = fetchurl { + url = "https://download.tuxfamily.org/harmonist/releases/${pname}-${version}.tar.gz"; + sha256 = "1cvhfvscd80qz95pqkblnyjhz1l87k7y6vmzyzap893mpjk9a3pm"; + }; + + goDeps = ./deps.nix; + + postInstall = "mv $bin/bin/harmonist.git $bin/bin/harmonist"; + + meta = with stdenv.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]; + }; +} diff --git a/pkgs/games/harmonist/deps.nix b/pkgs/games/harmonist/deps.nix new file mode 100644 index 000000000000..a785567adddf --- /dev/null +++ b/pkgs/games/harmonist/deps.nix @@ -0,0 +1,20 @@ +[ + { + goPackagePath = "github.com/nsf/termbox-go"; + fetch = { + type = "git"; + url = "https://github.com/nsf/termbox-go"; + rev = "288510b9734e30e7966ec2f22b87c5f8e67345e3"; + sha256 = "0hdyisfaf8yb55h3p03p4sbq19546mp9fy28f2kn659mycmhxqk4"; + }; + } + { + goPackagePath = "github.com/mattn/go-runewidth"; + fetch = { + type = "git"; + url = "https://github.com/mattn/go-runewidth"; + rev = "703b5e6b11ae25aeb2af9ebb5d5fdf8fa2575211"; + sha256 = "0znpyz71gajx3g0j2zp63nhjj2c07g16885vxv4ykwnrfmzbgk4w"; + }; + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6b76d509ea1a..6d080a2524c9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21455,6 +21455,8 @@ in gzdoom = callPackage ../games/gzdoom { }; + harmonist = callPackage ../games/harmonist { }; + hawkthorne = callPackage ../games/hawkthorne { love = love_0_9; }; hedgewars = callPackage ../games/hedgewars {