2022-02-07 11:28:28 +00:00
|
|
|
{ stdenv, fetchFromGitLab, lib, python3Packages, mutagen, fold-to-ascii, pyyaml, ffmpeg, r128gain }:
|
2022-02-07 11:14:09 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "musicutil";
|
|
|
|
version = "latest";
|
|
|
|
rev = "9880c175a679bf4450745dc91fb18fb88e0a4fd6";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "ChaotiCryptidz";
|
|
|
|
repo = "musicutil";
|
|
|
|
inherit rev;
|
|
|
|
sha256 = "sha256-pvDxVeCNZy3TKfbFds4QSQPR2lYZR+RZrwBHI+Pfj+w=";
|
|
|
|
#sha256 = lib.fakeSha256;
|
|
|
|
};
|
|
|
|
|
2022-02-07 11:28:28 +00:00
|
|
|
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"'
|
|
|
|
'';
|
|
|
|
|
2022-02-07 11:14:09 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ mutagen fold-to-ascii pyyaml ];
|
|
|
|
}
|