1 { lib, stdenv, fetchurl, fetchzip, SDL, SDL_mixer, SDL_ttf }:
3 stdenv.mkDerivation rec {
8 url = "https://downloads.sourceforge.net/project/hexahop/${version}/hex-a-hop-${version}.tar.gz";
9 sha256 = "sha256-fBSvNtgNR0aNofbvoYpM1e8ww4ARlXIvrQUvJqVGLlY=";
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=";
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=";
24 buildInputs = [ SDL SDL_mixer SDL_ttf ];
26 makeFlags = [ "PREFIX=$(out)" ];
29 install -Dm644 ${icon} $out/share/icons/${pname}.png
30 install -Dm644 ${desktop} $out/share/applications/${pname}.desktop
34 description = "A puzzle game based on hexagonal tiles";
35 mainProgram = "hex-a-hop";
36 homepage = "http://hexahop.sourceforge.net";
37 license = with lib.licenses; [
41 lgpl3Plus # source files from Lips of Suna
43 platforms = lib.platforms.linux;
44 maintainers = with lib.maintainers; [ rampoina ];