Merge pull request #224248 from Rampoina/hex-a-hop

hex-a-hop: init at 1.1.0

authored by Atemu and committed by GitHub cb578ff7 859a712a

+54
+7
maintainers/maintainer-list.nix
··· 12745 githubId = 14829269; 12746 name = "Ram Kromberg"; 12747 }; 12748 ranfdev = { 12749 email = "ranfdev@gmail.com"; 12750 name = "Lorenzo Miglietta";
··· 12745 githubId = 14829269; 12746 name = "Ram Kromberg"; 12747 }; 12748 + rampoina = { 12749 + email = "rampoina@protonmail.com"; 12750 + matrix = "@rampoina:matrix.org"; 12751 + github = "Rampoina"; 12752 + githubId = 5653911; 12753 + name = "Rampoina"; 12754 + }; 12755 ranfdev = { 12756 email = "ranfdev@gmail.com"; 12757 name = "Lorenzo Miglietta";
+45
pkgs/games/hex-a-hop/default.nix
···
··· 1 + { lib, stdenv, fetchurl, fetchzip, SDL, SDL_mixer, SDL_ttf }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "hex-a-hop"; 5 + version = "1.1.0"; 6 + 7 + src = fetchzip { 8 + url = "https://downloads.sourceforge.net/project/hexahop/${version}/hex-a-hop-${version}.tar.gz"; 9 + sha256 = "sha256-fBSvNtgNR0aNofbvoYpM1e8ww4ARlXIvrQUvJqVGLlY="; 10 + }; 11 + 12 + icon = fetchurl { 13 + # Fetched from dfa365a90be5c52ef21235a9e90a865b04da3ad4, remove in the next version when the file is included 14 + url = "https://sourceforge.net/p/hexahop/code/ci/dfa365a90be5c52ef21235a9e90a865b04da3ad4/tree/data/hex-a-hop.png?format=raw"; 15 + sha256 = "sha256-Vh/1wwRmC2eSD/+mk1Oqt7EX4a4k++nUAbWQD2P2hNA="; 16 + }; 17 + 18 + desktop = fetchurl { 19 + # Fetched from e67385078e4f248a3877ee1066613d231c0d0eee, remove in the next version when the file is included 20 + url = "https://sourceforge.net/p/hexahop/code/ci/e67385078e4f248a3877ee1066613d231c0d0eee/tree/data/hex-a-hop.desktop?format=raw"; 21 + sha256 = "sha256-j6gKRq+8b1NDwP1WcCaScfmwNxAl78CfK6pemROrRak="; 22 + }; 23 + 24 + buildInputs = [ SDL SDL_mixer SDL_ttf ]; 25 + 26 + makeFlags = [ "PREFIX=$(out)" ]; 27 + 28 + postFixup = '' 29 + install -Dm644 ${icon} $out/share/icons/${pname}.png 30 + install -Dm644 ${desktop} $out/share/applications/${pname}.desktop 31 + ''; 32 + 33 + meta = { 34 + description = "A puzzle game based on hexagonal tiles"; 35 + homepage = "http://hexahop.sourceforge.net"; 36 + license = with lib.licenses; [ 37 + gpl2Plus # Main code 38 + cc-by-30 # Assets 39 + lgpl2Plus # i18n 40 + lgpl3Plus # source files from Lips of Suna 41 + ]; 42 + platforms = lib.platforms.linux; 43 + maintainers = with lib.maintainers; [ rampoina ]; 44 + }; 45 + }
+2
pkgs/top-level/all-packages.nix
··· 30748 30749 herbstluftwm = callPackage ../applications/window-managers/herbstluftwm { }; 30750 30751 hexchat = callPackage ../applications/networking/irc/hexchat { }; 30752 30753 hexcurse = callPackage ../applications/editors/hexcurse { };
··· 30748 30749 herbstluftwm = callPackage ../applications/window-managers/herbstluftwm { }; 30750 30751 + hex-a-hop = callPackage ../games/hex-a-hop { }; 30752 + 30753 hexchat = callPackage ../applications/networking/irc/hexchat { }; 30754 30755 hexcurse = callPackage ../applications/editors/hexcurse { };