nixpkgs/pkgs/applications/audio/noson/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.1 KiB
Nix
Raw Normal View History

2023-05-26 11:55:37 +00:00
{ stdenv
, lib
, fetchFromGitHub
, cmake
, flac
, libpulseaudio
, qtbase
, qtgraphicaleffects
, qtquickcontrols2
, wrapQtAppsHook
, makeWrapper
2023-05-26 11:55:37 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
pname = "noson";
2024-06-24 02:29:21 +00:00
version = "5.6.7";
2023-05-26 11:55:37 +00:00
src = fetchFromGitHub {
owner = "janbar";
repo = "noson-app";
rev = finalAttrs.version;
2024-06-24 02:29:21 +00:00
hash = "sha256-lroQYO+Ab7uPQmsrUFK6uWdCoGQp1klyfLw6eAxdzjg=";
2023-05-26 11:55:37 +00:00
};
nativeBuildInputs = [
cmake
wrapQtAppsHook
makeWrapper
2023-05-26 11:55:37 +00:00
];
buildInputs = [
flac
libpulseaudio
qtbase
qtgraphicaleffects
qtquickcontrols2
];
# wrapQtAppsHook doesn't automatically find noson-gui
dontWrapQtApps = true;
2023-05-26 11:55:37 +00:00
preFixup = ''
wrapProgram "$out/bin/noson-app" --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpulseaudio ]}
2023-05-26 11:55:37 +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 ];
};
})