biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / audio / audio-recorder / default.nix
blob72d31e2966ff567c4d5249a4fcaada84f1c9dcb9
1 { lib, stdenv, fetchurl
2 , pkg-config, intltool
3 , glib, dbus, gtk3, libappindicator-gtk3, gst_all_1
4 , librsvg, wrapGAppsHook
5 , pulseaudioSupport ? true, libpulseaudio }:
7 stdenv.mkDerivation rec {
8   pname = "audio-recorder";
9   version = "2.1.3";
11   src = fetchurl {
12     name = "${pname}-${version}.tar.gz";
13     url = "${meta.homepage}/+archive/ubuntu/ppa/+files/audio-recorder_${version}%7Ebionic.tar.gz";
14     sha256 = "160pnmnmc9zwzyclsci3w1qwlgxkfx1y3x5ck6i587w78570an1r";
15   };
17   # https://bugs.launchpad.net/audio-recorder/+bug/1784622
18   env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
20   nativeBuildInputs = [ pkg-config intltool wrapGAppsHook ];
22   buildInputs = [
23     glib dbus gtk3 librsvg libappindicator-gtk3
24   ] ++ (with gst_all_1; [
25     gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav
26   ]) ++ lib.optional pulseaudioSupport libpulseaudio;
28   meta = with lib; {
29     description = "Audio recorder for GNOME and Unity Desktops";
30     mainProgram = "audio-recorder";
31     longDescription = ''
32       This program allows you to record your favourite music or audio to a file.
33       It can record audio from your system soundcard, microphones, browsers and
34       webcams. Put simply; if it plays out of your loudspeakers you can record it.
35       This program has a timer that can start, stop or pause recording on certain
36       conditions such as audio level, file size and clock time. This recorder can
37       automatically record your Skype calls. It supports several audio (output)
38       formats such as OGG audio, Flac, MP3 and WAV.
39     '';
40     homepage = "https://launchpad.net/~audio-recorder";
41     license = licenses.gpl3;
42     platforms = platforms.linux;
43     maintainers = [ maintainers.msteen ];
44   };