add ffmpeg and r128gain to musicutil

This commit is contained in:
ChaotiCryptidz 2022-02-07 11:28:28 +00:00
parent d9d2504f0e
commit e40a1e553f

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitLab, lib, python3Packages, mutagen, fold-to-ascii, pyyaml }:
{ stdenv, fetchFromGitLab, lib, python3Packages, mutagen, fold-to-ascii, pyyaml, ffmpeg, r128gain }:
python3Packages.buildPythonApplication rec {
pname = "musicutil";
version = "latest";
@ -12,6 +12,12 @@ python3Packages.buildPythonApplication rec {
#sha256 = lib.fakeSha256;
};
postPatch = ''
substituteInPlace musicutil/meta.py --replace 'ffmpeg_path = "ffmpeg"' 'ffmpeg_path = "${ffmpeg}/bin/ffmpeg"'
substituteInPlace musicutil/meta.py --replace 'ffprobe_path = "ffprobe"' 'ffprobe_path = "${ffmpeg}/bin/ffprobe"'
substituteInPlace musicutil/meta.py --replace 'r128gain_path = "r128gain"' 'r128gain_path = "${r128gain}/bin/r128gain"'
'';
doCheck = false;
propagatedBuildInputs = [ mutagen fold-to-ascii pyyaml ];