2021-10-01 09:20:50 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2022-10-21 18:38:19 +00:00
|
|
|
, wrapGAppsHook4
|
2021-10-01 09:20:50 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, appstream-glib
|
|
|
|
, python3Packages
|
|
|
|
, glib
|
2022-04-27 09:35:20 +00:00
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2021-10-01 09:20:50 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, gst_all_1
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "blanket";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.6.0";
|
2021-10-01 09:20:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rafaelmardojai";
|
|
|
|
repo = "blanket";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-4gthT1x76IfXWkLaLMPtFS4TRlRGk5Enbu/k1jAHzwE=";
|
2021-10-01 09:20:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2022-10-21 18:38:19 +00:00
|
|
|
wrapGAppsHook4
|
2021-10-01 09:20:50 +00:00
|
|
|
desktop-file-utils
|
2023-03-15 16:39:30 +00:00
|
|
|
gobject-introspection
|
2021-10-01 09:20:50 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
2022-04-27 09:35:20 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
2021-10-01 09:20:50 +00:00
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
pygobject3
|
|
|
|
];
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
2022-10-21 18:38:19 +00:00
|
|
|
substituteInPlace build-aux/meson/postinstall.py \
|
|
|
|
--replace gtk-update-icon-cache gtk4-update-icon-cache
|
2021-10-01 09:20:50 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/rafaelmardojai/blanket";
|
|
|
|
description = "Listen to different sounds";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "blanket";
|
2021-10-01 09:20:50 +00:00
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|