48 stdenv.mkDerivation rec {
49 pname = "ultrastardx";
52 src = fetchFromGitHub {
53 owner = "UltraStar-Deluxe";
56 hash = "sha256-8/qFzPP3Gw9YAGsnyI+wJUP3Jo8UoZkihRgYg4P5MVo=";
69 substituteInPlace src/config.inc.in \
70 --subst-var-by libpcre_LIBNAME libpcre.so.1
75 items = lib.concatMapStringsSep " " (x: "-rpath ${lib.getLib x}/lib") sharedLibs;
78 export NIX_LDFLAGS="$NIX_LDFLAGS ${items}"
81 # dlopened libgcc requires the rpath not to be shrinked
85 homepage = "https://usdx.eu/";
86 description = "Free and open source karaoke game";
87 mainProgram = "ultrastardx";
88 license = licenses.gpl2Plus;
89 maintainers = with maintainers; [ Profpatsch ];
90 platforms = platforms.linux;