Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
flac,
|
|
libpulseaudio,
|
|
qtbase,
|
|
qtgraphicaleffects,
|
|
qtquickcontrols2,
|
|
qtwayland,
|
|
wrapQtAppsHook,
|
|
makeWrapper,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "noson";
|
|
version = "5.6.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "janbar";
|
|
repo = "noson-app";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-XJBkPhyDPeyVrcY5Q5W9LtESuVxcbcQ8JoyOzKg+0NU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
wrapQtAppsHook
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
flac
|
|
libpulseaudio
|
|
qtbase
|
|
qtgraphicaleffects
|
|
qtquickcontrols2
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
qtwayland
|
|
];
|
|
|
|
# wrapQtAppsHook doesn't automatically find noson-gui
|
|
dontWrapQtApps = true;
|
|
|
|
preFixup = ''
|
|
wrapProgram "$out/bin/noson-app" --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpulseaudio ]}
|
|
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 ];
|
|
};
|
|
})
|