9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
51 lines
1,008 B
Nix
51 lines
1,008 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, flac
|
|
, libpulseaudio
|
|
, qtbase
|
|
, qtgraphicaleffects
|
|
, qtquickcontrols2
|
|
, wrapQtAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "noson";
|
|
version = "5.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "janbar";
|
|
repo = "noson-app";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-7RrBfkUCRVzUGl+OT3OuoMlu4D3Sa7RpBefFgmfX1Fs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
flac
|
|
libpulseaudio
|
|
qtbase
|
|
qtgraphicaleffects
|
|
qtquickcontrols2
|
|
];
|
|
|
|
# wrapQtAppsHook doesn't automatically find noson-gui
|
|
dontWrapQtApps = true;
|
|
preFixup = ''
|
|
wrapQtApp "$out/lib/noson/noson-gui"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "SONOS controller for Linux (and macOS)";
|
|
homepage = "https://janbar.github.io/noson-app/";
|
|
mainProgram = "noson-app";
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
license = [ licenses.gpl3Only ];
|
|
maintainers = with maintainers; [ callahad ];
|
|
};
|
|
})
|