2023-07-15 17:15:38 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, flac
|
|
|
|
, libpulseaudio
|
|
|
|
, qtbase
|
|
|
|
, qtgraphicaleffects
|
|
|
|
, qtquickcontrols2
|
|
|
|
, wrapQtAppsHook
|
2023-10-09 19:29:22 +00:00
|
|
|
, makeWrapper
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "noson";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "5.6.6";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janbar";
|
|
|
|
repo = "noson-app";
|
|
|
|
rev = finalAttrs.version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-aBrp+mfY/c6K3dLbDGnEKoUbQC7TlFRQJZCjXPeDZ6s=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
wrapQtAppsHook
|
2023-10-09 19:29:22 +00:00
|
|
|
makeWrapper
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
flac
|
|
|
|
libpulseaudio
|
|
|
|
qtbase
|
|
|
|
qtgraphicaleffects
|
|
|
|
qtquickcontrols2
|
|
|
|
];
|
|
|
|
|
|
|
|
# wrapQtAppsHook doesn't automatically find noson-gui
|
|
|
|
dontWrapQtApps = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
preFixup = ''
|
2023-10-09 19:29:22 +00:00
|
|
|
wrapProgram "$out/bin/noson-app" --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpulseaudio ]}
|
2023-07-15 17:15:38 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
})
|