nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 45 lines 1.6 kB view raw
1{ lib, stdenv, fetchurl, fetchzip, SDL, SDL_mixer, SDL_ttf }: 2 3stdenv.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}