libvgm 0 -> 1 attrpath: libvgm Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/bc54v9zslmnnw0r1w9fgrk3n2pz0y2yy-packages.json.drv building '/nix/store/bc54v9zslmnnw0r1w9fgrk3n2pz0y2yy-packages.json.drv'... Going to be running update for following packages: - libvgm-unstable-2023-08-14 Press Enter key to continue... Running update for: - libvgm-unstable-2023-08-14: UPDATING ... - libvgm-unstable-2023-08-14: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/libraries/libvgm/default.nix b/pkgs/development/libraries/libvgm/default.nix index 31508b01fbd0..225094494ca5 100644 --- a/pkgs/development/libraries/libvgm/default.nix +++ b/pkgs/development/libraries/libvgm/default.nix @@ -42,13 +42,13 @@ let in stdenv.mkDerivation rec { pname = "libvgm"; - version = "unstable-2023-08-14"; + version = "unstable-2024-01-03"; src = fetchFromGitHub { owner = "ValleyBell"; repo = "libvgm"; - rev = "079c4e737e6a73b38ae20125521d7d9eafda28e9"; - sha256 = "hmaGIf9AQOYqrpnmKAB9I2vO+EXrzvoRaQ6Epdygy4o="; + rev = "223b6f9d629feda1982dc4bbeebd19fa63b987fb"; + sha256 = "CrqgDuOsY+Hpp41De6oWJduj8d8ftMUanMEWJKh79rw="; }; outputs = [ No auto update branch exists Old version unstable-2023-08-14" not present in master derivation file with contents: { stdenv , lib , fetchFromGitHub , unstableGitUpdater , cmake , libiconv , zlib , enableShared ? true , enableAudio ? true , withWaveWrite ? true , withWinMM ? stdenv.hostPlatform.isWindows , withDirectSound ? stdenv.hostPlatform.isWindows , withXAudio2 ? stdenv.hostPlatform.isWindows , withWASAPI ? stdenv.hostPlatform.isWindows , withOSS ? stdenv.hostPlatform.isFreeBSD , withSADA ? stdenv.hostPlatform.isSunOS , withALSA ? stdenv.hostPlatform.isLinux , alsa-lib , withPulseAudio ? stdenv.hostPlatform.isLinux , libpulseaudio , withCoreAudio ? stdenv.hostPlatform.isDarwin , CoreAudio , AudioToolbox , withLibao ? true , libao , enableEmulation ? true , withAllEmulators ? true , emulators ? [ ] , enableLibplayer ? true , enableTools ? false }: assert enableTools -> enableAudio && enableEmulation && enableLibplayer; let inherit (lib) optional optionals; onOff = val: if val then "ON" else "OFF"; in stdenv.mkDerivation { pname = "libvgm"; version = "unstable-2024-01-03"; src = fetchFromGitHub { owner = "ValleyBell"; repo = "libvgm"; rev = "223b6f9d629feda1982dc4bbeebd19fa63b987fb"; hash = "sha256-CrqgDuOsY+Hpp41De6oWJduj8d8ftMUanMEWJKh79rw="; }; outputs = [ "out" "dev" ] ++ optional enableTools "bin"; nativeBuildInputs = [ cmake ]; propagatedBuildInputs = [ libiconv zlib ] ++ optionals withALSA [ alsa-lib ] ++ optionals withPulseAudio [ libpulseaudio ] ++ optionals withCoreAudio [ CoreAudio AudioToolbox ] ++ optionals withLibao [ libao ]; cmakeFlags = [ "-DBUILD_LIBAUDIO=${onOff enableAudio}" "-DBUILD_LIBEMU=${onOff enableEmulation}" "-DBUILD_LIBPLAYER=${onOff enableLibplayer}" "-DBUILD_TESTS=${onOff enableTools}" "-DBUILD_PLAYER=${onOff enableTools}" "-DBUILD_VGM2WAV=${onOff enableTools}" "-DLIBRARY_TYPE=${if enableShared then "SHARED" else "STATIC"}" "-DUSE_SANITIZERS=ON" ] ++ optionals enableAudio [ "-DAUDIODRV_WAVEWRITE=${onOff withWaveWrite}" "-DAUDIODRV_WINMM=${onOff withWinMM}" "-DAUDIODRV_DSOUND=${onOff withDirectSound}" "-DAUDIODRV_XAUDIO2=${onOff withXAudio2}" "-DAUDIODRV_WASAPI=${onOff withWASAPI}" "-DAUDIODRV_OSS=${onOff withOSS}" "-DAUDIODRV_SADA=${onOff withSADA}" "-DAUDIODRV_ALSA=${onOff withALSA}" "-DAUDIODRV_PULSE=${onOff withPulseAudio}" "-DAUDIODRV_APPLE=${onOff withCoreAudio}" "-DAUDIODRV_LIBAO=${onOff withLibao}" ] ++ optionals enableEmulation ([ "-DSNDEMU__ALL=${onOff withAllEmulators}" ] ++ optionals (!withAllEmulators) (lib.lists.forEach emulators (x: "-DSNDEMU_${x}=ON")) ) ++ optionals enableTools [ "-DUTIL_CHARCNV_ICONV=ON" "-DUTIL_CHARCNV_WINAPI=${onOff stdenv.hostPlatform.isWindows}" ]; passthru.updateScript = unstableGitUpdater { url = "https://github.com/ValleyBell/libvgm.git"; }; meta = with lib; { homepage = "https://github.com/ValleyBell/libvgm"; description = "More modular rewrite of most components from VGMPlay"; license = if (enableEmulation && (withAllEmulators || (lib.lists.any (core: core == "WSWAN_ALL") emulators))) then licenses.unfree # https://github.com/ValleyBell/libvgm/issues/43 else licenses.gpl2Only; maintainers = with maintainers; [ OPNA2608 ]; platforms = platforms.all; }; }