azure-storage-azcopy: 10.27.1 -> 10.28.0 (#377459)
[NixPkgs.git] / pkgs / by-name / op / open-scq30 / package.nix
blob9973336ca7ab2514b1049927c1c2a63b16fc4af0
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   protobuf,
7   wrapGAppsHook4,
8   cairo,
9   dbus,
10   gdk-pixbuf,
11   glib,
12   gtk4,
13   libadwaita,
14   pango,
15   stdenv,
16   darwin,
17   cargo-make,
20 rustPlatform.buildRustPackage rec {
21   pname = "open-scq30";
22   version = "1.12.0";
24   src = fetchFromGitHub {
25     owner = "Oppzippy";
26     repo = "OpenSCQ30";
27     rev = "v${version}";
28     hash = "sha256-DL2hYm1j27K0nnBvE3iGnguqm0m1k56bkuG+6+u4u4c=";
29   };
31   nativeBuildInputs = [
32     pkg-config
33     protobuf
34     wrapGAppsHook4
35     cargo-make
36   ];
38   buildInputs =
39     [
40       cairo
41       dbus
42       gdk-pixbuf
43       glib
44       gtk4
45       libadwaita
46       pango
47     ]
48     ++ lib.optionals stdenv.hostPlatform.isDarwin [
49       darwin.apple_sdk.frameworks.AppKit
50       darwin.apple_sdk.frameworks.CoreBluetooth
51       darwin.apple_sdk.frameworks.CoreGraphics
52       darwin.apple_sdk.frameworks.Foundation
53     ];
55   cargoHash = "sha256-YBJd43xOCumQbrvzfV/+F63McYzHg1bGI3icgGzGZrQ=";
57   INSTALL_PREFIX = placeholder "out";
59   # Requires headphones
60   doCheck = false;
62   buildPhase = ''
63     cargo make --profile release build
64   '';
66   installPhase = ''
67     cargo make --profile release install
68   '';
70   meta = with lib; {
71     description = "Cross platform application for controlling settings of Soundcore headphones";
72     homepage = "https://github.com/Oppzippy/OpenSCQ30";
73     changelog = "https://github.com/Oppzippy/OpenSCQ30/blob/${src.rev}/CHANGELOG.md";
74     license = licenses.gpl3Only;
75     maintainers = with maintainers; [ mkg20001 ];
76     mainProgram = "open-scq30";
77   };