alephone: 1.6.2 -> 1.7

This commit is contained in:
Emery Hemingway 2023-11-28 17:34:44 +02:00
parent 0ee3c78131
commit 6fb94a8e0f

View file

@ -1,18 +1,44 @@
{ lib, stdenv, fetchurl, alsa-lib, boost, curl, ffmpeg_4, icoutils, libGLU { lib
, libmad, libogg, libpng, libsndfile, libvorbis, lua, miniupnpc, pkg-config , stdenv
, SDL2, SDL2_image, SDL2_net, SDL2_ttf, speex, zziplib, zlib, makeWrapper , fetchurl
, makeDesktopItem, unzip, alephone }: , alsa-lib
, boost
, curl
, ffmpeg_4
, icoutils
, libGLU
, libmad
, libogg
, libpng
, libsndfile
, libvorbis
, lua
, makeDesktopItem
, makeWrapper
, miniupnpc
, openal
, pkg-config
, SDL2
, SDL2_image
, SDL2_net
, SDL2_ttf
, speex
, unzip
, zlib
, zziplib
, alephone
}:
let stdenv.mkDerivation (finalAttrs: {
self = stdenv.mkDerivation rec {
outputs = [ "out" "icons" ]; outputs = [ "out" "icons" ];
pname = "alephone"; pname = "alephone";
version = "1.6.2"; version = "1.7";
src = fetchurl { src = fetchurl {
url = let date = "20230529"; url =
let date = "20231125";
in "https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${date}/AlephOne-${date}.tar.bz2"; in "https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${date}/AlephOne-${date}.tar.bz2";
sha256 = "sha256-UqhZvOMOxU4W0eLRRTQvGXaqTpWD5KIdXULClHW7Iyc="; sha256 = "sha256-qRHmtkzPi6PKeAzoMPdSbboiilG+L2fCXvXXu3vIchs=";
}; };
nativeBuildInputs = [ pkg-config icoutils ]; nativeBuildInputs = [ pkg-config icoutils ];
@ -24,19 +50,20 @@ let
ffmpeg_4 ffmpeg_4
libGLU libGLU
libmad libmad
libsndfile
libogg libogg
libpng libpng
libsndfile
libvorbis libvorbis
lua lua
miniupnpc miniupnpc
openal
SDL2 SDL2
SDL2_image SDL2_image
SDL2_net SDL2_net
SDL2_ttf SDL2_ttf
speex speex
zziplib
zlib zlib
zziplib
]; ];
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]; configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ];
@ -54,19 +81,24 @@ let
popd popd
''; '';
meta = with lib; { meta = {
description = description =
"Aleph One is the open source continuation of Bungies Marathon 2 game engine"; "Aleph One is the open source continuation of Bungies Marathon 2 game engine";
homepage = "https://alephone.lhowon.org/"; homepage = "https://alephone.lhowon.org/";
license = with licenses; [ gpl3 ]; license = [ lib.licenses.gpl3 ];
maintainers = with maintainers; [ ehmry ]; maintainers = with lib.maintainers; [ ehmry ];
platforms = platforms.linux; platforms = lib.platforms.linux;
};
}; };
in self // { passthru.makeWrapper =
makeWrapper = { pname, desktopName, version, zip, meta { pname
, icon ? alephone.icons + "/alephone.png", ... }@extraArgs: , desktopName
, version
, zip
, meta
, icon ? alephone.icons + "/alephone.png"
, ...
}@extraArgs:
stdenv.mkDerivation ({ stdenv.mkDerivation ({
inherit pname version; inherit pname version;
@ -96,7 +128,8 @@ in self // {
} // extraArgs // { } // extraArgs // {
meta = alephone.meta // { meta = alephone.meta // {
license = lib.licenses.free; license = lib.licenses.free;
mainProgram = pname;
hydraPlatforms = [ ]; hydraPlatforms = [ ];
} // meta; } // meta;
}); });
} })