2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config, intltool
|
2018-07-31 17:02:57 +00:00
|
|
|
, glib, dbus, 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 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "audio-recorder";
|
2018-07-31 17:02:57 +00:00
|
|
|
version = "2.1.3";
|
2015-11-08 18:06:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
name = "${pname}-${version}.tar.gz";
|
2018-07-31 17:02:57 +00:00
|
|
|
url = "${meta.homepage}/+archive/ubuntu/ppa/+files/audio-recorder_${version}%7Ebionic.tar.gz";
|
|
|
|
sha256 = "160pnmnmc9zwzyclsci3w1qwlgxkfx1y3x5ck6i587w78570an1r";
|
2015-11-08 18:06:32 +00:00
|
|
|
};
|
|
|
|
|
2018-07-31 17:02:57 +00:00
|
|
|
# https://bugs.launchpad.net/audio-recorder/+bug/1784622
|
2019-04-19 10:14:39 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
2015-11-08 18:06:32 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config intltool wrapGAppsHook ];
|
2015-11-08 18:06:32 +00:00
|
|
|
|
2018-07-31 17:02:57 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib dbus gtk3 librsvg libappindicator-gtk3
|
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav
|
2021-01-15 13:21:58 +00:00
|
|
|
]) ++ lib.optional pulseaudioSupport libpulseaudio;
|
2015-11-08 18:06:32 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-11-08 18:06:32 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://launchpad.net/~audio-recorder";
|
2015-11-08 18:06:32 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.msteen ];
|
|
|
|
};
|
|
|
|
}
|