nixpkgs/pkgs/applications/audio/blanket/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.3 KiB
Nix
Raw Normal View History

2021-09-29 06:30:07 +00:00
{ lib
, fetchFromGitHub
, meson
, ninja
, pkg-config
2022-10-09 18:21:34 +00:00
, wrapGAppsHook4
2021-09-29 06:30:07 +00:00
, desktop-file-utils
, appstream-glib
, python3Packages
, glib
2022-04-15 08:50:27 +00:00
, gtk4
, libadwaita
2021-09-29 06:30:07 +00:00
, gobject-introspection
, gst_all_1
}:
python3Packages.buildPythonApplication rec {
pname = "blanket";
2022-04-15 08:50:27 +00:00
version = "0.6.0";
2021-09-29 06:30:07 +00:00
src = fetchFromGitHub {
owner = "rafaelmardojai";
repo = "blanket";
2022-04-15 08:50:27 +00:00
rev = "refs/tags/${version}";
sha256 = "sha256-4gthT1x76IfXWkLaLMPtFS4TRlRGk5Enbu/k1jAHzwE=";
2021-09-29 06:30:07 +00:00
};
nativeBuildInputs = [
meson
ninja
pkg-config
2022-10-09 18:21:34 +00:00
wrapGAppsHook4
2021-09-29 06:30:07 +00:00
desktop-file-utils
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
];
propagatedBuildInputs = with python3Packages; [
pygobject3
];
format = "other";
postPatch = ''
patchShebangs build-aux/meson/postinstall.py
2022-10-09 18:21:34 +00:00
substituteInPlace build-aux/meson/postinstall.py \
--replace gtk-update-icon-cache gtk4-update-icon-cache
2021-09-29 06:30:07 +00:00
'';
meta = with lib; {
homepage = "https://github.com/rafaelmardojai/blanket";
description = "Listen to different sounds";
maintainers = with maintainers; [ onny ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}