2015-11-08 18:06:32 +00:00
|
|
|
{ stdenv, fetchurl, lib
|
2017-02-05 18:25:26 +00:00
|
|
|
, pkgconfig, intltool, autoconf, gnome3
|
2015-11-08 18:06:32 +00:00
|
|
|
, glib, dbus, gtk3, libdbusmenu-gtk3, libappindicator-gtk3, gst_all_1
|
2017-02-05 18:25:26 +00:00
|
|
|
, librsvg, wrapGAppsHook
|
2015-11-08 18:06:32 +00:00
|
|
|
, pulseaudioSupport ? true, libpulseaudio ? null }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "audio-recorder-${version}";
|
2017-09-05 12:32:46 +01:00
|
|
|
version = "1.9.7";
|
2015-11-08 18:06:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-02-05 18:25:26 +00:00
|
|
|
name = "${name}-zesty.tar.gz";
|
|
|
|
url = "${meta.homepage}/+archive/ubuntu/ppa/+files/audio-recorder_${version}%7Ezesty.tar.gz";
|
2017-09-05 12:32:46 +01:00
|
|
|
sha256 = "163c0vs5qj72y62731yp6sl6s0indh2szhjg02mxigv9b68dx89c";
|
2015-11-08 18:06:32 +00:00
|
|
|
};
|
|
|
|
|
2017-02-05 18:25:26 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool autoconf wrapGAppsHook ];
|
|
|
|
|
2015-11-08 18:06:32 +00:00
|
|
|
buildInputs = with gst_all_1; [
|
2017-07-24 05:24:11 +01:00
|
|
|
glib dbus gtk3 librsvg libdbusmenu-gtk3 libappindicator-gtk3 (stdenv.lib.getLib gnome3.dconf)
|
2015-11-08 18:06:32 +00:00
|
|
|
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav
|
|
|
|
] ++ optional pulseaudioSupport libpulseaudio;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace 'PKG_CHECK_MODULES(GIO, gio-2.0 >= $GLIB_REQUIRED)' \
|
|
|
|
'PKG_CHECK_MODULES(GIO, gio-2.0 >= $GLIB_REQUIRED gio-unix-2.0)'
|
|
|
|
autoconf
|
|
|
|
intltoolize
|
|
|
|
'';
|
|
|
|
|
2017-02-05 18:25:26 +00:00
|
|
|
preFixup = ''
|
2017-08-10 02:35:55 +01:00
|
|
|
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : $out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : $GST_PLUGIN_SYSTEM_PATH_1_0
|
|
|
|
--prefix GIO_EXTRA_MODULES : ${stdenv.lib.getLib gnome3.dconf}/lib/gio/modules)
|
2015-11-08 18:06:32 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Audio recorder for GNOME and Unity Desktops";
|
|
|
|
longDescription = ''
|
|
|
|
This program allows you to record your favourite music or audio to a file.
|
|
|
|
It can record audio from your system soundcard, microphones, browsers and
|
|
|
|
webcams. Put simply; if it plays out of your loudspeakers you can record it.
|
|
|
|
This program has a timer that can start, stop or pause recording on certain
|
|
|
|
conditions such as audio level, file size and clock time. This recorder can
|
|
|
|
automatically record your Skype calls. It supports several audio (output)
|
|
|
|
formats such as OGG audio, Flac, MP3 and WAV.
|
|
|
|
'';
|
|
|
|
homepage = https://launchpad.net/~audio-recorder;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.msteen ];
|
|
|
|
};
|
|
|
|
}
|