mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
01d4e2fe33
After making `ffmpeg` point to the latest `ffmpeg_4`, all packages that used `ffmpeg` without requiring a specific version now use ffmpeg_3 explicitly so they shouldn't change.
44 lines
992 B
Nix
44 lines
992 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, substituteAll
|
|
, ffmpeg_3
|
|
, python3Packages
|
|
, sox
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "r128gain";
|
|
version = "1.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "desbma";
|
|
repo = "r128gain";
|
|
rev = version;
|
|
sha256 = "0fnxis2g7mw8mb0cz9bws909lrndli7ml54nnzda49vc2fhbjwxr";
|
|
};
|
|
|
|
patches = [
|
|
(
|
|
substituteAll {
|
|
src = ./ffmpeg-location.patch;
|
|
ffmpeg = ffmpeg_3;
|
|
}
|
|
)
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [ crcmod ffmpeg-python mutagen tqdm ];
|
|
checkInputs = with python3Packages; [ requests sox ];
|
|
|
|
# Testing downloads media files for testing, which requires the
|
|
# sandbox to be disabled.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Fast audio loudness scanner & tagger (ReplayGain v2 / R128)";
|
|
homepage = "https://github.com/desbma/r128gain";
|
|
license = licenses.lgpl2Plus;
|
|
maintainers = [ maintainers.AluisioASG ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|