2024-08-11 16:33:46 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchurl,
|
|
|
|
pkg-config,
|
|
|
|
gettext,
|
|
|
|
gobject-introspection,
|
|
|
|
wrapGAppsHook4,
|
|
|
|
gjs,
|
|
|
|
glib,
|
|
|
|
gtk4,
|
|
|
|
gdk-pixbuf,
|
|
|
|
gst_all_1,
|
|
|
|
gnome,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
python3,
|
|
|
|
desktop-file-utils,
|
|
|
|
libadwaita,
|
2020-09-21 02:10:25 +00:00
|
|
|
}:
|
2018-07-16 19:42:46 +00:00
|
|
|
|
2019-01-17 20:24:29 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-07-16 19:42:46 +00:00
|
|
|
pname = "gnome-sound-recorder";
|
2022-08-07 17:11:34 +00:00
|
|
|
version = "43.beta";
|
2018-07-16 19:42:46 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-08-11 16:33:46 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-sound-recorder/${lib.versions.major version}/gnome-sound-recorder-${version}.tar.xz";
|
2024-09-14 21:47:11 +00:00
|
|
|
hash = "sha256-bbbbmjsbUv0KtU+aW/Tymctx5SoTrF/fw+dOtGmFpOY=";
|
2018-07-16 19:42:46 +00:00
|
|
|
};
|
|
|
|
|
2019-03-03 18:54:54 +00:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2020-09-21 02:10:25 +00:00
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gobject-introspection
|
2024-04-05 14:37:35 +00:00
|
|
|
wrapGAppsHook4
|
2020-09-21 02:10:25 +00:00
|
|
|
python3
|
|
|
|
desktop-file-utils
|
2019-01-17 20:24:29 +00:00
|
|
|
];
|
2020-09-21 02:10:25 +00:00
|
|
|
|
2024-08-11 16:33:46 +00:00
|
|
|
buildInputs =
|
|
|
|
[
|
|
|
|
gjs
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
gdk-pixbuf
|
|
|
|
libadwaita
|
|
|
|
]
|
|
|
|
++ (with gst_all_1; [
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad # for gstreamer-player-1.0
|
|
|
|
]);
|
2018-07-16 19:42:46 +00:00
|
|
|
|
2019-03-03 18:54:54 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson_post_install.py
|
2024-04-05 14:37:35 +00:00
|
|
|
substituteInPlace build-aux/meson_post_install.py \
|
|
|
|
--replace-fail 'gtk-update-icon-cache' 'gtk4-update-icon-cache'
|
2019-03-03 18:54:54 +00:00
|
|
|
patchShebangs build-aux/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2018-07-16 19:42:46 +00:00
|
|
|
passthru = {
|
2024-08-11 16:33:47 +00:00
|
|
|
updateScript = gnome.updateScript { packageName = "gnome-sound-recorder"; };
|
2018-07-16 19:42:46 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-07-16 19:42:46 +00:00
|
|
|
description = "Simple and modern sound recorder";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "gnome-sound-recorder";
|
2024-05-01 05:03:10 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/World/vocalis";
|
2024-10-04 19:35:12 +00:00
|
|
|
changelog = "https://gitlab.gnome.org/World/vocalis/-/blob/${version}/NEWS?ref_type=tags";
|
2018-07-16 19:42:46 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2018-07-16 19:42:46 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|