Skip to content

Commit

Permalink
noson: init at 5.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
callahad committed May 29, 2023
1 parent 671cb8e commit 2a819f2
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
51 changes: 51 additions & 0 deletions pkgs/applications/audio/noson/default.nix
@@ -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 ];
};
})
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -31341,6 +31341,8 @@ with pkgs;

mt32emu-smf2wav = callPackage ../applications/audio/munt/mt32emu-smf2wav.nix { };

noson = libsForQt5.callPackage ../applications/audio/noson { };

offpunk = callPackage ../applications/networking/browsers/offpunk { };

owl-compositor = callPackage ../applications/window-managers/owl { };
Expand Down

0 comments on commit 2a819f2

Please sign in to comment.