From e40a1e553f096e4778de5678963a083645c0205e Mon Sep 17 00:00:00 2001 From: ChaotiCryptidz Date: Mon, 7 Feb 2022 11:28:28 +0000 Subject: [PATCH] add ffmpeg and r128gain to musicutil --- overlay/musicutil/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/overlay/musicutil/default.nix b/overlay/musicutil/default.nix index 96355ea..31702ee 100644 --- a/overlay/musicutil/default.nix +++ b/overlay/musicutil/default.nix @@ -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 ];