fix building with new nixpkgs
This commit is contained in:
parent
749f7b07ed
commit
9f48d9eab5
|
@ -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];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue