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