From 144a2aefb96b20cf2a700dea9f504e49fe3cee65 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Tue, 14 Dec 2021 15:31:32 +0100 Subject: [PATCH] sony-headphones-client: init at 1.2 --- .../audio/sony-headphones-client/default.nix | 44 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/applications/audio/sony-headphones-client/default.nix diff --git a/pkgs/applications/audio/sony-headphones-client/default.nix b/pkgs/applications/audio/sony-headphones-client/default.nix new file mode 100644 index 000000000000..976c4ab5702c --- /dev/null +++ b/pkgs/applications/audio/sony-headphones-client/default.nix @@ -0,0 +1,44 @@ +{ 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" ]; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b2369abe1813..d091f2eb1a8b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9776,6 +9776,8 @@ with pkgs; sonata = callPackage ../applications/audio/sonata { }; + sony-headphones-client = callPackage ../applications/audio/sony-headphones-client { }; + soundkonverter = libsForQt5.soundkonverter; soundwireserver = callPackage ../applications/audio/soundwireserver { };