summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-09-19 14:53:09 +0200
committeraszlig <aszlig@redmoonstudios.org>2015-09-21 22:32:13 +0200
commit7ab8dde5113fb25d3bd3da2f8feb71098b1f8b6b (patch)
tree78a37ec799081a6488b3fce43256ca2bc5792285 /pkgs
parent9a39c2e9434b848175a8763c9d5a5f544603e16d (diff)
downloadnixlib-7ab8dde5113fb25d3bd3da2f8feb71098b1f8b6b.tar
nixlib-7ab8dde5113fb25d3bd3da2f8feb71098b1f8b6b.tar.gz
nixlib-7ab8dde5113fb25d3bd3da2f8feb71098b1f8b6b.tar.bz2
nixlib-7ab8dde5113fb25d3bd3da2f8feb71098b1f8b6b.tar.lz
nixlib-7ab8dde5113fb25d3bd3da2f8feb71098b1f8b6b.tar.xz
nixlib-7ab8dde5113fb25d3bd3da2f8feb71098b1f8b6b.tar.zst
nixlib-7ab8dde5113fb25d3bd3da2f8feb71098b1f8b6b.zip
bs1770gain: init at 0.4.7
I've been trying to package this a while ago but found out that apart
from the hand-rolled build system a few sources were missing I didn't
continue to work on it.

This was the WIP expression:

https://gist.github.com/aszlig/c271f294410cc5af0f0a

Now, since the latest upstream version, the project uses autoconf and
automake, which makes it very much painless for us.

So now I can watch demoscene videos without getting hearing loss because
of volume differences :-)

Also, this might be useful for beets as well, in case they're going to
move away from using python-audiotools:

https://github.com/sampsyo/beets/issues/1342#issuecomment-86807500

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/audio/bs1770gain/default.nix20
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/applications/audio/bs1770gain/default.nix b/pkgs/applications/audio/bs1770gain/default.nix
new file mode 100644
index 000000000000..db6843f4535b
--- /dev/null
+++ b/pkgs/applications/audio/bs1770gain/default.nix
@@ -0,0 +1,20 @@
+{ stdenv, fetchurl, ffmpeg, sox }:
+
+stdenv.mkDerivation rec {
+  name = "bs1770gain-${version}";
+  version = "0.4.7";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/bs1770gain/${name}.tar.gz";
+    sha256 = "0dnypm7k4axc693g0z73n2mvycbzgc4lnj2am64xjzyg37my4qzz";
+  };
+
+  buildInputs = [ ffmpeg sox ];
+
+  meta = {
+    description = "A audio/video loudness scanner implementing ITU-R BS.1770";
+    license = stdenv.lib.licenses.gpl2Plus;
+    homepage = "http://bs1770gain.sourceforge.net/";
+    platforms = stdenv.lib.platforms.all;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 4891ec8d4ba2..3990a1f63260 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -10745,6 +10745,8 @@ let
 
   bristol = callPackage ../applications/audio/bristol { };
 
+  bs1770gain = callPackage ../applications/audio/bs1770gain { };
+
   bspwm = callPackage ../applications/window-managers/bspwm { };
 
   bvi = callPackage ../applications/editors/bvi { };