Merge pull request #132826 from svanderburg/add-desktopitems
Add desktopitems for some classic games
This commit is contained in:
commit
8fa19a7a6c
@ -1,5 +1,5 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, cmake, SDL2, libGLU, libGL, zlib, libjpeg, libogg, libvorbis
|
{ lib, stdenv, fetchFromGitHub, cmake, SDL2, libGLU, libGL, zlib, libjpeg, libogg, libvorbis
|
||||||
, openal, curl }:
|
, openal, curl, copyDesktopItems, makeDesktopItem }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "dhewm3";
|
pname = "dhewm3";
|
||||||
@ -21,9 +21,18 @@ stdenv.mkDerivation rec {
|
|||||||
cd "$(ls -d dhewm3-*.src)"/neo
|
cd "$(ls -d dhewm3-*.src)"/neo
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake copyDesktopItems ];
|
||||||
buildInputs = [ SDL2 libGLU libGL zlib libjpeg libogg libvorbis openal curl ];
|
buildInputs = [ SDL2 libGLU libGL zlib libjpeg libogg libvorbis openal curl ];
|
||||||
|
|
||||||
|
desktopItems = [
|
||||||
|
(makeDesktopItem {
|
||||||
|
name = "dhewm3";
|
||||||
|
exec = "dhewm3";
|
||||||
|
desktopName = "Doom 3";
|
||||||
|
categories = "Game;";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, openal, fluidsynth_1
|
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, openal, fluidsynth_1
|
||||||
, soundfont-fluid, libGL, SDL2, bzip2, zlib, libjpeg, libsndfile, mpg123
|
, soundfont-fluid, libGL, SDL2, bzip2, zlib, libjpeg, libsndfile, mpg123
|
||||||
, game-music-emu, pkg-config }:
|
, game-music-emu, pkg-config, copyDesktopItems, makeDesktopItem }:
|
||||||
|
|
||||||
let
|
let
|
||||||
zmusic-src = fetchFromGitHub {
|
zmusic-src = fetchFromGitHub {
|
||||||
@ -38,7 +38,7 @@ let
|
|||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake makeWrapper pkg-config ];
|
nativeBuildInputs = [ cmake makeWrapper pkg-config copyDesktopItems ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
SDL2
|
SDL2
|
||||||
libGL
|
libGL
|
||||||
@ -55,7 +55,18 @@ let
|
|||||||
|
|
||||||
NIX_CFLAGS_LINK = "-lopenal -lfluidsynth";
|
NIX_CFLAGS_LINK = "-lopenal -lfluidsynth";
|
||||||
|
|
||||||
|
desktopItems = [
|
||||||
|
(makeDesktopItem {
|
||||||
|
name = "gzdoom";
|
||||||
|
exec = "gzdoom";
|
||||||
|
desktopName = "GZDoom";
|
||||||
|
categories = "Game;";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
install -Dm755 gzdoom "$out/lib/gzdoom/gzdoom"
|
install -Dm755 gzdoom "$out/lib/gzdoom/gzdoom"
|
||||||
for i in *.pk3; do
|
for i in *.pk3; do
|
||||||
install -Dm644 "$i" "$out/lib/gzdoom/$i"
|
install -Dm644 "$i" "$out/lib/gzdoom/$i"
|
||||||
@ -68,6 +79,8 @@ let
|
|||||||
done
|
done
|
||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
makeWrapper $out/lib/gzdoom/gzdoom $out/bin/gzdoom
|
makeWrapper $out/lib/gzdoom/gzdoom $out/bin/gzdoom
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, SDL, fetchurl, gzip, libvorbis, libmad }:
|
{ lib, stdenv, SDL, fetchurl, gzip, libvorbis, libmad, copyDesktopItems, makeDesktopItem }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "quakespasm";
|
pname = "quakespasm";
|
||||||
@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
sourceRoot = "${pname}-${version}/Quake";
|
sourceRoot = "${pname}-${version}/Quake";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ copyDesktopItems ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gzip SDL libvorbis libmad
|
gzip SDL libvorbis libmad
|
||||||
];
|
];
|
||||||
@ -25,6 +26,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
desktopItems = [
|
||||||
|
(makeDesktopItem {
|
||||||
|
name = "quakespasm";
|
||||||
|
exec = "quake";
|
||||||
|
desktopName = "Quakespasm";
|
||||||
|
categories = "Game;";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An engine for iD software's Quake";
|
description = "An engine for iD software's Quake";
|
||||||
homepage = "http://quakespasm.sourceforge.net/";
|
homepage = "http://quakespasm.sourceforge.net/";
|
||||||
|
Loading…
Reference in New Issue
Block a user