From 7ab8dde5113fb25d3bd3da2f8feb71098b1f8b6b Mon Sep 17 00:00:00 2001 From: aszlig Date: Sat, 19 Sep 2015 14:53:09 +0200 Subject: [PATCH] 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 --- .../applications/audio/bs1770gain/default.nix | 20 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/applications/audio/bs1770gain/default.nix diff --git a/pkgs/applications/audio/bs1770gain/default.nix b/pkgs/applications/audio/bs1770gain/default.nix new file mode 100644 index 00000000000..db6843f4535 --- /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 4891ec8d4ba..3990a1f6326 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 { };