fix building with new nixpkgs

This commit is contained in:
chaos 2023-11-11 12:08:32 +00:00
parent 749f7b07ed
commit 9f48d9eab5
No known key found for this signature in database

View file

@ -45,19 +45,14 @@
'';
postFixup = ''
wrapProgram $out/bin/some-script \
wrapProgram $out/bin/musicutil \
--set PATH ${lib.makeBinPath [
pkgs.ffmpeg
]}
'';
postPatch = ''
substituteInPlace src/meta.rs --replace 'ffmpeg' '${pkgs.ffmpeg}/bin/ffmpeg'
substituteInPlace src/meta.rs --replace 'ffprobe' '${pkgs.ffmpeg}/bin/ffprobe'
'';
doCheck = false;
nativeBuildInputs = with pkgs; [pkg-config rustc cargo];
nativeBuildInputs = with pkgs; [pkg-config rustc cargo makeWrapper];
buildInputs = with pkgs; [ffmpeg zlib taglib];
};
};