34 stdenv.mkDerivation (finalAttrs: {
47 "https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${date}/AlephOne-${date}.tar.bz2";
48 hash = "sha256-Es2Uo0RIJHYeO/60XiHVLJe9Eoan8DREtAI2KGjuLaM=";
79 configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ];
80 makeFlags = [ "AR:=$(AR)" ];
82 enableParallelBuilding = true;
86 icotool -x -i 5 -o $icons Resources/Windows/*.ico
88 for x in *_5_48x48x32.png; do
89 mv $x ''${x%_5_48x48x32.png}.png
94 passthru.tests.version =
95 # test that the version is correct
96 testers.testVersion { package = finalAttrs.finalPackage; };
99 description = "Aleph One is the open source continuation of Bungie’s Marathon 2 game engine";
100 mainProgram = "alephone";
101 homepage = "https://alephone.lhowon.org/";
102 license = [ lib.licenses.gpl3 ];
103 maintainers = with lib.maintainers; [ ehmry ];
104 platforms = lib.platforms.linux;
107 passthru.makeWrapper =
114 icon ? finalAttrs.finalPackage.icons + "/alephone.png",
117 stdenv.mkDerivation (
119 inherit pname version;
121 desktopItem = makeDesktopItem {
125 categories = [ "Game" ];
126 comment = meta.description;
127 inherit desktopName icon;
132 nativeBuildInputs = [
137 dontConfigure = true;
141 mkdir -p $out/bin $out/data/$pname $out/share/applications
142 cp -a * $out/data/$pname
143 cp $desktopItem/share/applications/* $out/share/applications
144 makeWrapper ${finalAttrs.finalPackage}/bin/alephone $out/bin/$pname \
145 --add-flags $out/data/$pname
151 finalAttrs.finalPackage.meta
153 license = lib.licenses.free;
155 hydraPlatforms = [ ];