2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-26 14:53:52 +00:00
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 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
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 \
--replace-fail gtk-update-icon-cache gtk4-update-icon-cache
2021-09-29 06:30:07 +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;
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
};
}