From 931dd07712cb19d4e40abe722f98d2c80ef216fe Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sat, 14 Mar 2020 17:54:45 +0100 Subject: [PATCH] ffmpeg-normalize: init at 1.15.7 --- .../video/ffmpeg-normalize/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/applications/video/ffmpeg-normalize/default.nix diff --git a/pkgs/applications/video/ffmpeg-normalize/default.nix b/pkgs/applications/video/ffmpeg-normalize/default.nix new file mode 100644 index 000000000000..d992e42ebffd --- /dev/null +++ b/pkgs/applications/video/ffmpeg-normalize/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildPythonApplication +, fetchPypi +, ffmpeg +, tqdm +}: + +buildPythonApplication rec { + pname = "ffmpeg-normalize"; + version = "1.15.7"; + + src = fetchPypi { + inherit pname version; + sha256 = "0161939f864e973b11d50170c657baf3e1433147f46c74a74ed5025a822e9a2d"; + }; + + propagatedBuildInputs = [ ffmpeg tqdm ]; + + checkPhase = '' + $out/bin/ffmpeg-normalize --help > /dev/null + ''; + + meta = with lib; { + description = "Normalize audio via ffmpeg"; + homepage = "https://github.com/slhck/ffmpeg-normalize"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ prusnak ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 583482ad8b74..e2bc8a135ebb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11446,6 +11446,8 @@ in ffmpeg-sixel = callPackage ../development/libraries/ffmpeg-sixel { }; + ffmpeg-normalize = python3Packages.callPackage ../applications/video/ffmpeg-normalize { }; + ffms = callPackage ../development/libraries/ffms { }; fftw = callPackage ../development/libraries/fftw { };