Merge pull request #316218 from fgaz/astromenace/1.4.2

astromenace: 1.4.1 -> 1.4.2, adopt

authored by Sandro and committed by GitHub 3243676f e9cfb29a

+60 -22
+60 -22
pkgs/games/astromenace/default.nix
··· 1 - { fetchurl, lib, stdenv, cmake, xorg, libGLU, libGL, SDL, openal, fontconfig, freealut, freetype, libogg, libvorbis, runtimeShell }: 2 3 stdenv.mkDerivation rec { 4 pname = "astromenace"; 5 - version = "1.4.1"; 6 7 - src = fetchurl { 8 - url = "mirror://sourceforge/openastromenace/astromenace-src-${version}.tar.bz2"; 9 - sha256 = "1rkz6lwjcd5mwv72kf07ghvx6z46kf3xs250mjbmnmjpn7r5sxwv"; 10 }; 11 12 - nativeBuildInputs = [ cmake ]; 13 - buildInputs = [ xorg.libICE xorg.libX11 xorg.libXinerama libGLU libGL SDL openal fontconfig freealut freetype libogg libvorbis ]; 14 - 15 - postBuild = '' 16 - ./AstroMenace --pack --rawdata=../RAW_VFS_DATA 17 - ''; 18 - 19 - installPhase = '' 20 - mkdir -p $out/bin 21 22 - cp AstroMenace $out 23 - cp gamedata.vfs $out 24 25 - cat > $out/bin/AstroMenace << EOF 26 - #!${runtimeShell} 27 - $out/AstroMenace --dir=$out 28 - EOF 29 30 - chmod 755 $out/bin/AstroMenace 31 ''; 32 33 meta = with lib; { ··· 35 homepage = "https://www.viewizard.com/"; 36 license = licenses.gpl3Plus; 37 platforms = platforms.linux; 38 - mainProgram = "AstroMenace"; 39 }; 40 }
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , cmake 6 + , ninja 7 + , makeWrapper 8 + , xorg 9 + , libGLU 10 + , libGL 11 + , SDL2 12 + , openal 13 + , fontconfig 14 + , freealut 15 + , freetype 16 + , libogg 17 + , libvorbis 18 + , runtimeShell 19 + }: 20 21 stdenv.mkDerivation rec { 22 pname = "astromenace"; 23 + version = "1.4.2"; 24 25 + src = fetchFromGitHub { 26 + owner = "viewizard"; 27 + repo = "astromenace"; 28 + rev = "v${version}"; 29 + hash = "sha256-VFFFYHsBxkURHqOBeuRuIxRKsy8baw2izOZ/qXUkiW8="; 30 }; 31 32 + patches = [ 33 + (fetchpatch { 34 + url = "https://src.fedoraproject.org/rpms/astromenace/raw/5e6bc02d115a53007dc47ef8223d8eaa25607588/f/astromenace-gcc13.patch"; 35 + hash = "sha256-pkmTVR86vS+KCICxAp+d7upNWVnSNxwdKmxnbtqIvgU="; 36 + }) 37 + ]; 38 39 + nativeBuildInputs = [ 40 + cmake 41 + ninja 42 + makeWrapper 43 + ]; 44 45 + buildInputs = [ 46 + xorg.libICE 47 + xorg.libX11 48 + xorg.libXinerama 49 + libGLU 50 + libGL 51 + SDL2 52 + openal 53 + fontconfig 54 + freealut 55 + freetype 56 + libogg 57 + libvorbis 58 + ]; 59 60 + installPhase = '' 61 + runHook preInstall 62 + mkdir -p $out/share/astromenace 63 + install -Dm644 gamedata.vfs $out/share/astromenace/gamedata.vfs 64 + install -Dm755 astromenace $out/bin/astromenace 65 + wrapProgram $out/bin/astromenace \ 66 + --add-flags "--dir=$out/share/astromenace" 67 + runHook postInstall 68 ''; 69 70 meta = with lib; { ··· 72 homepage = "https://www.viewizard.com/"; 73 license = licenses.gpl3Plus; 74 platforms = platforms.linux; 75 + mainProgram = "astromenace"; 76 + maintainers = with maintainers; [ fgaz ]; 77 }; 78 }