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

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

70 lines
1.4 KiB
Nix
Raw Normal View History

2021-09-29 09:30:07 +03:00
{ lib
, fetchFromGitHub
, meson
, ninja
, pkg-config
2022-10-09 21:21:34 +03:00
, wrapGAppsHook4
2021-09-29 09:30:07 +03:00
, desktop-file-utils
, appstream-glib
, python3Packages
, glib
2022-04-15 11:50:27 +03:00
, gtk4
, libadwaita
2021-09-29 09:30:07 +03:00
, gobject-introspection
, gst_all_1
}:
python3Packages.buildPythonApplication rec {
pname = "blanket";
2022-04-15 11:50:27 +03:00
version = "0.6.0";
2021-09-29 09:30:07 +03:00
src = fetchFromGitHub {
owner = "rafaelmardojai";
repo = "blanket";
2022-04-15 11:50:27 +03:00
rev = "refs/tags/${version}";
sha256 = "sha256-4gthT1x76IfXWkLaLMPtFS4TRlRGk5Enbu/k1jAHzwE=";
2021-09-29 09:30:07 +03:00
};
nativeBuildInputs = [
meson
ninja
pkg-config
2022-10-09 21:21:34 +03:00
wrapGAppsHook4
2021-09-29 09:30:07 +03:00
desktop-file-utils
];
buildInputs = [
glib
2022-04-15 11:50:27 +03:00
gtk4
libadwaita
2021-09-29 09:30:07 +03:00
gobject-introspection
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
];
# Broken with gobject-introspection setup hook
# https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
format = "other";
postPatch = ''
patchShebangs build-aux/meson/postinstall.py
2022-10-09 21:21:34 +03:00
substituteInPlace build-aux/meson/postinstall.py \
--replace gtk-update-icon-cache gtk4-update-icon-cache
2021-09-29 09:30:07 +03: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;
};
}