1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

cavalcade: init at 0.8

This commit is contained in:
Sigmanificient 2024-07-26 07:00:00 +02:00
parent 81c68106d3
commit f1e0916d30

View file

@ -0,0 +1,74 @@
{
lib,
python3Packages,
fetchFromGitHub,
gtk3,
cava,
gst_all_1,
gobject-introspection,
wrapGAppsHook3,
copyDesktopItems,
makeDesktopItem,
fetchurl,
}:
python3Packages.buildPythonApplication rec {
pname = "cavalcade";
version = "0.8";
pyproject = true;
src = fetchFromGitHub {
owner = "worron";
repo = "cavalcade";
rev = "refs/tags/${version}";
hash = "sha256-VyWOPNidN0+pfuxsgPWq6lI5gXQsiRpmYjQYjZW6i9w=";
};
postPatch = ''
substituteInPlace cavalcade/cava.py \
--replace-fail '"cava"' '"${cava}/bin/cava"'
'';
build-system = [ python3Packages.setuptools ];
dependencies = with python3Packages; [
pygobject3
gst-python
pillow
];
nativeBuildInputs = [
wrapGAppsHook3
copyDesktopItems
gobject-introspection
gst_all_1.gstreamer
];
buildInputs = [ gtk3 ];
desktopItems = [
(makeDesktopItem {
name = "Cavalcade";
type = "Application";
exec = "cavalcade";
icon = fetchurl {
url = "https://raw.githubusercontent.com/worron/cavalcade/68ba5a2b2effd1c46b0568f4a27852689c2cdf32/desktop/cavalcade.svg";
hash = "sha256-GJR5kUmSnFG6dE+o2UWKaHmiKPZNDGZZqXCIP8o883M=";
};
comment = "CAVA GUI";
categories = [
"AudioVideo"
"Audio"
"GTK"
];
desktopName = "Cavalcade";
})
];
meta = {
description = "Python wrapper for C.A.V.A. utility with a GUI";
homepage = "https://github.com/worron/cavalcade";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ sigmanificient ];
};
}