Closed Zaechus closed 1 year ago
Staging recently added sdl2_image to the build dependencies.
Unscramble this will take a longer time than I expected. There are at least 10 subprojects to grab.
In the meantime I have a custom package of a newer dosbox-staging version that builds properly:
pkgs/dosbox-staging/default.nix
:
{ stdenv
, fetchFromGitHub
, gtest
, makeWrapper
, meson
, ninja
, pkg-config
, alsa-lib
, fluidsynth
, glib
, libmt32emu
, libogg
, libpng
, libslirp
, opusfile
, SDL2
, SDL2_image
, SDL2_net
, speexdsp
, my
}:
stdenv.mkDerivation rec {
pname = "dosbox-staging";
version = "0.80.1";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
hash = "sha256-I90poBeLSq1c8PXyjrx7/UcbfqFNnnNiXfJdWhLPGMc=";
};
nativeBuildInputs = [
gtest
makeWrapper
meson
ninja
pkg-config
];
buildInputs = [
alsa-lib
fluidsynth
glib
libmt32emu
libogg
libpng
libslirp
opusfile
SDL2
SDL2_image
SDL2_net
speexdsp
my.iir1
];
NIX_CFLAGS_COMPILE = [
"-I${SDL2_image}/include/SDL2"
"-I${SDL2_net}/include/SDL2"
];
enableParallelBuilding = true;
postFixup = ''
mv $out/bin/dosbox $out/bin/${pname}
makeWrapper $out/bin/dosbox-staging $out/bin/dosbox
'';
}
pkgs/iir1/default.nix
:
{ stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
pname = "iir1";
version = "1.9.4";
src = fetchFromGitHub {
owner = "berndporr";
repo = pname;
rev = "${version}";
hash = "sha256-T8gl51IkZIGq+6D5ge4Kb3wm5aw7Rhphmnf6TTGwHbs=";
};
nativeBuildInputs = [
cmake
];
}
This should be fixed by #215686.
Steps To Reproduce
Steps to reproduce the behavior:
Build log
https://gist.github.com/Zaechus/acae0ae3a86558e77ee824d7caa6b750
Notify maintainers
@JoshuaFern @AndersonTorres
Metadata