Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #234210 from callahad/noson
noson: init at 5.4.1
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ 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 ]; | ||
}; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters