Merge pull request #206706 from zendo/cavalier

cavalier: init at 2023.01.29
This commit is contained in:
Sandro 2023-01-31 15:44:32 +01:00 committed by GitHub
commit 8bfdad1992
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,68 @@
{ lib
, python3
, fetchFromGitHub
, meson
, ninja
, pkg-config
, gobject-introspection
, glib
, gtk4
, librsvg
, libadwaita
, wrapGAppsHook4
, appstream-glib
, desktop-file-utils
, cava
}:
python3.pkgs.buildPythonApplication rec {
pname = "cavalier";
version = "2023.01.29";
format = "other";
src = fetchFromGitHub {
owner = "fsobolev";
repo = pname;
rev = version;
hash = "sha256-6bvi73cFQHtIyD4d4+mqje0qkmG4wkahZ2ohda5RvRQ=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
wrapGAppsHook4
appstream-glib
desktop-file-utils
];
buildInputs = [
glib
gtk4
librsvg
libadwaita
];
propagatedBuildInputs = with python3.pkgs; [
pygobject3
];
# Prevent double wrapping
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
--prefix PATH ":" "${lib.makeBinPath [ cava ]}"
)
'';
meta = with lib; {
description = "Audio visualizer based on CAVA with customizable LibAdwaita interface";
homepage = "https://github.com/fsobolev/cavalier";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ zendo ];
};
}

View file

@ -28470,6 +28470,8 @@ with pkgs;
cava = callPackage ../applications/audio/cava { };
cavalier = callPackage ../applications/audio/cavalier { };
cb2bib = libsForQt5.callPackage ../applications/office/cb2bib { };
cbatticon = callPackage ../applications/misc/cbatticon { };