dosbox-staging: munt is now libmt32emu
This commit is contained in:
parent
b5d5688a44
commit
31b7fe92c0
1 changed files with 47 additions and 13 deletions
|
@ -1,6 +1,21 @@
|
||||||
{ lib, fetchFromGitHub, stdenv
|
{ lib
|
||||||
, gtest, makeWrapper, meson, ninja, pkg-config
|
, stdenv
|
||||||
, alsa-lib, fluidsynth, libGL, libGLU, libogg, libpng, munt, opusfile, SDL2, SDL2_net
|
, fetchFromGitHub
|
||||||
|
, SDL2
|
||||||
|
, SDL2_net
|
||||||
|
, alsa-lib
|
||||||
|
, fluidsynth
|
||||||
|
, gtest
|
||||||
|
, libGL
|
||||||
|
, libGLU
|
||||||
|
, libogg
|
||||||
|
, libpng
|
||||||
|
, makeWrapper
|
||||||
|
, meson
|
||||||
|
, libmt32emu
|
||||||
|
, ninja
|
||||||
|
, opusfile
|
||||||
|
, pkg-config
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -14,34 +29,53 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "07jwmmm1bhfxavlhl854cj8l5iy5hqx5hpwkkjbcwqg7yh9jfs2x";
|
sha256 = "07jwmmm1bhfxavlhl854cj8l5iy5hqx5hpwkkjbcwqg7yh9jfs2x";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ gtest makeWrapper meson ninja pkg-config ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ alsa-lib fluidsynth libGL libGLU libogg libpng munt opusfile SDL2 SDL2_net ];
|
gtest
|
||||||
|
makeWrapper
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
SDL2
|
||||||
|
SDL2_net
|
||||||
|
alsa-lib
|
||||||
|
fluidsynth
|
||||||
|
libGL
|
||||||
|
libGLU
|
||||||
|
libmt32emu
|
||||||
|
libogg
|
||||||
|
libpng
|
||||||
|
opusfile
|
||||||
|
];
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"--buildtype=release"
|
"--buildtype=release"
|
||||||
"-Ddefault_library=static"
|
|
||||||
"-Db_asneeded=true"
|
"-Db_asneeded=true"
|
||||||
"-Dtry_static_libs=png"
|
"-Ddefault_library=static"
|
||||||
"-Dfluidsynth:enable-floats=true"
|
"-Dfluidsynth:enable-floats=true"
|
||||||
"-Dfluidsynth:try-static-deps=true"
|
"-Dfluidsynth:try-static-deps=true"
|
||||||
|
"-Dtry_static_libs=png"
|
||||||
];
|
];
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
# Rename binary, add a wrapper, and copy manual to avoid conflict with vanilla dosbox.
|
# Rename binary, add a wrapper, and copy manual to avoid conflict with
|
||||||
# Doing it this way allows us to work with frontends and launchers that expect the
|
# vanilla dosbox. Doing it this way allows us to work with frontends and
|
||||||
# binary to be named dosbox, but get out of the way of vanilla dosbox if the user
|
# launchers that expect the binary to be named dosbox, but get out of the
|
||||||
# desires to install that as well.
|
# way of vanilla dosbox if the user desires to install that as well.
|
||||||
|
|
||||||
mv $out/bin/dosbox $out/bin/${pname}
|
mv $out/bin/dosbox $out/bin/${pname}
|
||||||
makeWrapper $out/bin/dosbox-staging $out/bin/dosbox
|
makeWrapper $out/bin/dosbox-staging $out/bin/dosbox
|
||||||
cp $out/share/man/man1/dosbox.1.gz $out/share/man/man1/${pname}.1.gz
|
cp $out/share/man/man1/dosbox.1.gz $out/share/man/man1/${pname}.1.gz
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A modernized DOS emulator";
|
|
||||||
homepage = "https://dosbox-staging.github.io/";
|
homepage = "https://dosbox-staging.github.io/";
|
||||||
license = licenses.gpl2;
|
description = "A modernized DOS emulator";
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ joshuafern ];
|
maintainers = with maintainers; [ joshuafern ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
priority = 101;
|
priority = 101;
|
||||||
|
|
Loading…
Reference in a new issue