summary refs log tree commit diff
path: root/pkgs/applications/audio/audio-recorder/default.nix
diff options
context:
space:
mode:
authorMatthijs Steen <emailmatthijs@gmail.com>2015-11-08 19:06:32 +0100
committerMatthijs Steen <emailmatthijs@gmail.com>2015-11-09 11:00:04 +0100
commit13ae3cf15d16eecdc3dc7efad2436fadb634e61b (patch)
tree600429cf8db5acd0c016a3ff2e67ebf1ea375fe1 /pkgs/applications/audio/audio-recorder/default.nix
parentadb74ad2f935e2ec66b799d6a001825fc6736c85 (diff)
downloadnixpkgs-13ae3cf15d16eecdc3dc7efad2436fadb634e61b.tar
nixpkgs-13ae3cf15d16eecdc3dc7efad2436fadb634e61b.tar.gz
nixpkgs-13ae3cf15d16eecdc3dc7efad2436fadb634e61b.tar.bz2
nixpkgs-13ae3cf15d16eecdc3dc7efad2436fadb634e61b.tar.lz
nixpkgs-13ae3cf15d16eecdc3dc7efad2436fadb634e61b.tar.xz
nixpkgs-13ae3cf15d16eecdc3dc7efad2436fadb634e61b.tar.zst
nixpkgs-13ae3cf15d16eecdc3dc7efad2436fadb634e61b.zip
audio-recorder: init at 1.7-5
The only issue with this package is that under Gnome 3, without installing any different icon themes but the standard, the icons will be missing. I also had some icons missing under the Arch Linux (AUR) build, so I assume they are rare icons, not provided by most icon themes.
Diffstat (limited to 'pkgs/applications/audio/audio-recorder/default.nix')
-rw-r--r--pkgs/applications/audio/audio-recorder/default.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/applications/audio/audio-recorder/default.nix b/pkgs/applications/audio/audio-recorder/default.nix
new file mode 100644
index 00000000000..2a611da45f8
--- /dev/null
+++ b/pkgs/applications/audio/audio-recorder/default.nix
@@ -0,0 +1,55 @@
+{ stdenv, fetchurl, lib
+, pkgconfig, intltool, autoconf, makeWrapper
+, glib, dbus, gtk3, libdbusmenu-gtk3, libappindicator-gtk3, gst_all_1
+, pulseaudioSupport ? true, libpulseaudio ? null }:
+
+with lib;
+
+stdenv.mkDerivation rec {
+  name = "audio-recorder-${version}";
+  version = "1.7-5";
+
+  src = fetchurl {
+    name = "${name}-wily.tar.gz";
+    url = "${meta.homepage}/+archive/ubuntu/ppa/+files/audio-recorder_${version}%7Ewily.tar.gz";
+    sha256 = "1cdlqhfqw2mg51f068j2lhn8mzxggzsbl560l4pl4fxgmpjywpkj";
+  };
+
+  nativeBuildInputs = [ pkgconfig intltool autoconf makeWrapper ];
+
+  buildInputs = with gst_all_1; [
+    glib dbus gtk3 libdbusmenu-gtk3 libappindicator-gtk3
+    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
+  '';
+
+  postFixup = ''
+    wrapProgram $out/bin/audio-recorder \
+      --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"
+  '';
+
+  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 ];
+  };
+}