2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
pkg-config,
|
|
|
|
wrapGAppsHook4,
|
|
|
|
blueprint-compiler,
|
|
|
|
desktop-file-utils,
|
|
|
|
python3Packages,
|
|
|
|
glib,
|
|
|
|
gtk4,
|
|
|
|
libadwaita,
|
|
|
|
gobject-introspection,
|
|
|
|
gst_all_1,
|
2021-10-01 09:20:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "blanket";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.7.0";
|
2021-10-01 09:20:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rafaelmardojai";
|
|
|
|
repo = "blanket";
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = version;
|
|
|
|
hash = "sha256-mY7c5i0me7mMbD8c6eGJeaZpR8XI5QVL4n3M+j15Z1c=";
|
2021-10-01 09:20:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-05-15 15:35:15 +00:00
|
|
|
blueprint-compiler
|
2021-10-01 09:20:50 +00:00
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [ pygobject3 ];
|
2021-10-01 09:20:50 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
2022-10-21 18:38:19 +00:00
|
|
|
substituteInPlace build-aux/meson/postinstall.py \
|
2024-09-19 14:19:46 +00:00
|
|
|
--replace-fail gtk-update-icon-cache gtk4-update-icon-cache
|
2021-10-01 09:20:50 +00:00
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2021-10-01 09:20:50 +00:00
|
|
|
description = "Listen to different sounds";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://github.com/rafaelmardojai/blanket";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "blanket";
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ onny ];
|
|
|
|
platforms = lib.platforms.linux;
|
2021-10-01 09:20:50 +00:00
|
|
|
};
|
|
|
|
}
|