26 pcre portaudio freetype
27 SDL2 SDL2_image SDL2_gfx SDL2_mixer SDL2_net SDL2_ttf
28 sqlite lua zlib libX11 libGLU libGL ffmpeg
31 in stdenv.mkDerivation rec {
32 pname = "ultrastardx";
33 version = "2024.10.0";
35 src = fetchFromGitHub {
36 owner = "UltraStar-Deluxe";
39 hash = "sha256-X5LixPRAI7A8Ns3D2A24T05w0iHag1EJVqt0aW1ZBps=";
42 nativeBuildInputs = [ pkg-config autoreconfHook ];
43 buildInputs = [ fpc libpng ] ++ sharedLibs;
46 substituteInPlace src/config.inc.in \
47 --subst-var-by libpcre_LIBNAME libpcre.so.1
51 let items = lib.concatMapStringsSep " " (x: "-rpath ${lib.getLib x}/lib") sharedLibs;
53 export NIX_LDFLAGS="$NIX_LDFLAGS ${items}"
56 # dlopened libgcc requires the rpath not to be shrinked
60 homepage = "https://usdx.eu/";
61 description = "Free and open source karaoke game";
62 mainProgram = "ultrastardx";
63 license = licenses.gpl2Plus;
64 maintainers = with maintainers; [ Profpatsch ];
65 platforms = platforms.linux;