lol

Merge pull request #173133 from Stunkymonkey/sony-headphones-client-gcc-fix

sony-headphones-client: patch gcc-20 support

authored by

Felix Bühler and committed by
GitHub
d48fc739 f94bfc14

+39 -11
+20 -11
pkgs/applications/audio/sony-headphones-client/default.nix
··· 19 19 20 20 cmakeFlags = [ "-Wno-dev" ]; 21 21 22 + patches = [ ./gcc.patch ]; 23 + 24 + postPatch = '' 25 + substituteInPlace Constants.h \ 26 + --replace "UNKNOWN = -1" "// UNKNOWN removed since it doesn't fit in char" 27 + ''; 28 + 22 29 installPhase = '' 23 30 runHook preInstall 24 31 install -Dm755 -t $out/bin SonyHeadphonesClient 25 32 runHook postInstall 26 33 ''; 27 34 28 - desktopItems = [ (makeDesktopItem { 29 - name = "SonyHeadphonesClient"; 30 - exec = "SonyHeadphonesClient"; 31 - icon = "SonyHeadphonesClient"; 32 - desktopName = "Sony Headphones Client"; 33 - comment = "A client recreating the functionality of the Sony Headphones app"; 34 - categories = [ "Audio" "Mixer" ]; 35 - }) ]; 35 + desktopItems = [ 36 + (makeDesktopItem { 37 + name = "SonyHeadphonesClient"; 38 + exec = "SonyHeadphonesClient"; 39 + icon = "SonyHeadphonesClient"; 40 + desktopName = "Sony Headphones Client"; 41 + comment = "A client recreating the functionality of the Sony Headphones app"; 42 + categories = [ "Audio" "Mixer" ]; 43 + }) 44 + ]; 36 45 37 46 meta = with lib; { 38 47 description = "A client recreating the functionality of the Sony Headphones app"; 39 - homepage = "https://github.com/Plutoberth/SonyHeadphonesClient"; 40 - license = licenses.mit; 48 + homepage = "https://github.com/Plutoberth/SonyHeadphonesClient"; 49 + license = licenses.mit; 41 50 maintainers = with maintainers; [ stunkymonkey ]; 42 - platforms = platforms.linux; 51 + platforms = platforms.linux; 43 52 }; 44 53 }
+19
pkgs/applications/audio/sony-headphones-client/gcc.patch
··· 1 + diff --git a/SingleInstanceFuture.h b/SingleInstanceFuture.h 2 + index 8af733f..d2e6c49 100644 3 + --- a/SingleInstanceFuture.h 4 + +++ b/SingleInstanceFuture.h 5 + @@ -12,13 +12,13 @@ template <class T> 6 + class SingleInstanceFuture : public std::future<T> 7 + { 8 + public: 9 + - SingleInstanceFuture<T>() = default; 10 + + SingleInstanceFuture(void) = default; 11 + template<class Func, class... Args> 12 + void setFromAsync(Func func, Args&&... args) noexcept(false); 13 + bool ready(); 14 + 15 + private: 16 + - SingleInstanceFuture<T>(std::future<T> other); 17 + + SingleInstanceFuture(std::future<T> other); 18 + SingleInstanceFuture<T> operator=(std::future<T>& other); 19 + };