nixpkgs/pkgs/by-name/bl/blanket/package.nix

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

74 lines
1.4 KiB
Nix
Raw Normal View History

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