uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
53
pkgs/applications/audio/sony-headphones-client/default.nix
Normal file
53
pkgs/applications/audio/sony-headphones-client/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, bluez, dbus, glew, glfw, imgui, makeDesktopItem, copyDesktopItems }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "SonyHeadphonesClient";
|
||||
version = "1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Plutoberth";
|
||||
repo = "SonyHeadphonesClient";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-oejXrs9X+R6Jydro0XIw2XifzFA7asDhpobtaE3//Hc=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config copyDesktopItems ];
|
||||
buildInputs = [ bluez dbus glew glfw imgui ];
|
||||
|
||||
sourceRoot = "./source/Client";
|
||||
|
||||
cmakeFlags = [ "-Wno-dev" ];
|
||||
|
||||
patches = [ ./gcc.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Constants.h \
|
||||
--replace "UNKNOWN = -1" "// UNKNOWN removed since it doesn't fit in char"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 -t $out/bin SonyHeadphonesClient
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = "SonyHeadphonesClient";
|
||||
exec = "SonyHeadphonesClient";
|
||||
icon = "SonyHeadphonesClient";
|
||||
desktopName = "Sony Headphones Client";
|
||||
comment = "A client recreating the functionality of the Sony Headphones app";
|
||||
categories = [ "Audio" "Mixer" ];
|
||||
})
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A client recreating the functionality of the Sony Headphones app";
|
||||
homepage = "https://github.com/Plutoberth/SonyHeadphonesClient";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ stunkymonkey ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
19
pkgs/applications/audio/sony-headphones-client/gcc.patch
Normal file
19
pkgs/applications/audio/sony-headphones-client/gcc.patch
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
diff --git a/SingleInstanceFuture.h b/SingleInstanceFuture.h
|
||||
index 8af733f..d2e6c49 100644
|
||||
--- a/SingleInstanceFuture.h
|
||||
+++ b/SingleInstanceFuture.h
|
||||
@@ -12,13 +12,13 @@ template <class T>
|
||||
class SingleInstanceFuture : public std::future<T>
|
||||
{
|
||||
public:
|
||||
- SingleInstanceFuture<T>() = default;
|
||||
+ SingleInstanceFuture(void) = default;
|
||||
template<class Func, class... Args>
|
||||
void setFromAsync(Func func, Args&&... args) noexcept(false);
|
||||
bool ready();
|
||||
|
||||
private:
|
||||
- SingleInstanceFuture<T>(std::future<T> other);
|
||||
+ SingleInstanceFuture(std::future<T> other);
|
||||
SingleInstanceFuture<T> operator=(std::future<T>& other);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue