nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 71 lines 1.2 kB view raw
1{ lib 2, stdenv 3, fetchurl 4, cmake 5, pkg-config 6, boost 7, curl 8, SDL2 9, SDL2_image 10, libSM 11, libXext 12, libpng 13, freetype 14, libGLU 15, libGL 16, glew 17, glm 18, openal 19, libogg 20, libvorbis 21}: 22 23stdenv.mkDerivation rec { 24 pname = "supertux"; 25 version = "0.6.3"; 26 27 src = fetchurl { 28 url = "https://github.com/SuperTux/supertux/releases/download/v${version}/SuperTux-v${version}-Source.tar.gz"; 29 sha256 = "1xkr3ka2sxp5s0spp84iv294i29s1vxqzazb6kmjc0n415h0x57p"; 30 }; 31 32 postPatch = '' 33 sed '1i#include <memory>' -i external/partio_zip/zip_manager.hpp # gcc12 34 ''; 35 36 nativeBuildInputs = [ pkg-config cmake ]; 37 38 buildInputs = [ 39 boost 40 curl 41 SDL2 42 SDL2_image 43 libSM 44 libXext 45 libpng 46 freetype 47 libGL 48 libGLU 49 glew 50 glm 51 openal 52 libogg 53 libvorbis 54 ]; 55 56 cmakeFlags = [ "-DENABLE_BOOST_STATIC_LIBS=OFF" ]; 57 58 postInstall = '' 59 mkdir $out/bin 60 ln -s $out/games/supertux2 $out/bin 61 ''; 62 63 meta = with lib; { 64 description = "Classic 2D jump'n run sidescroller game"; 65 homepage = "https://supertux.github.io/"; 66 license = licenses.gpl2; 67 maintainers = with maintainers; [ pSub ]; 68 platforms = with platforms; linux; 69 mainProgram = "supertux2"; 70 }; 71}