1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00
nixpkgs/pkgs/games/hex-a-hop/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

47 lines
1.6 KiB
Nix

{ lib, stdenv, fetchurl, fetchzip, SDL, SDL_mixer, SDL_ttf }:
stdenv.mkDerivation rec {
pname = "hex-a-hop";
version = "1.1.0";
src = fetchzip {
url = "https://downloads.sourceforge.net/project/hexahop/${version}/hex-a-hop-${version}.tar.gz";
sha256 = "sha256-fBSvNtgNR0aNofbvoYpM1e8ww4ARlXIvrQUvJqVGLlY=";
};
icon = fetchurl {
# Fetched from dfa365a90be5c52ef21235a9e90a865b04da3ad4, remove in the next version when the file is included
url = "https://sourceforge.net/p/hexahop/code/ci/dfa365a90be5c52ef21235a9e90a865b04da3ad4/tree/data/hex-a-hop.png?format=raw";
sha256 = "sha256-Vh/1wwRmC2eSD/+mk1Oqt7EX4a4k++nUAbWQD2P2hNA=";
};
desktop = fetchurl {
# Fetched from e67385078e4f248a3877ee1066613d231c0d0eee, remove in the next version when the file is included
url = "https://sourceforge.net/p/hexahop/code/ci/e67385078e4f248a3877ee1066613d231c0d0eee/tree/data/hex-a-hop.desktop?format=raw";
sha256 = "sha256-j6gKRq+8b1NDwP1WcCaScfmwNxAl78CfK6pemROrRak=";
};
buildInputs = [ SDL SDL_mixer SDL_ttf ];
makeFlags = [ "PREFIX=$(out)" ];
postFixup = ''
install -Dm644 ${icon} $out/share/icons/${pname}.png
install -Dm644 ${desktop} $out/share/applications/${pname}.desktop
'';
meta = {
description = "Puzzle game based on hexagonal tiles";
mainProgram = "hex-a-hop";
homepage = "http://hexahop.sourceforge.net";
license = with lib.licenses; [
gpl2Plus # Main code
cc-by-30 # Assets
lgpl2Plus # i18n
lgpl3Plus # source files from Lips of Suna
];
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ rampoina ];
};
}