2019-03-03 19:54:54 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, gettext, gobject-introspection, wrapGAppsHook, gjs, glib, gtk3, gdk_pixbuf, gst_all_1, gnome3
|
|
|
|
, meson, ninja, python3, hicolor-icon-theme, desktop-file-utils }:
|
2018-07-16 21:42:46 +02:00
|
|
|
|
2019-01-17 21:24:29 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-07-16 21:42:46 +02:00
|
|
|
pname = "gnome-sound-recorder";
|
2019-03-03 19:54:54 +01:00
|
|
|
version = "3.32.0";
|
2018-07-16 21:42:46 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-01-17 21:24:29 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-03-03 19:54:54 +01:00
|
|
|
sha256 = "0rchzap5mg9ach3jcf4sci5v2h5pgpdjafjfllfd09w9yg3brspp";
|
2018-07-16 21:42:46 +02:00
|
|
|
};
|
|
|
|
|
2019-03-03 19:54:54 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig gettext meson ninja gobject-introspection
|
|
|
|
wrapGAppsHook python3 hicolor-icon-theme desktop-file-utils
|
2019-01-17 21:24:29 +01:00
|
|
|
];
|
2018-07-16 21:42:46 +02:00
|
|
|
buildInputs = [ gjs glib gtk3 gdk_pixbuf ] ++ (with gst_all_1; [ gstreamer.dev gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ]);
|
|
|
|
|
2019-03-03 19:54:54 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson_post_install.py
|
|
|
|
patchShebangs build-aux/meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2018-07-16 21:42:46 +02:00
|
|
|
# TODO: fix this in gstreamer
|
|
|
|
# TODO: make stdenv.lib.getBin respect outputBin
|
|
|
|
PKG_CONFIG_GSTREAMER_1_0_TOOLSDIR = "${gst_all_1.gstreamer.dev}/bin";
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A simple and modern sound recorder";
|
|
|
|
homepage = https://wiki.gnome.org/Apps/SoundRecorder;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|