diff --git a/flake.nix b/flake.nix index 042e4f0..cd04206 100644 --- a/flake.nix +++ b/flake.nix @@ -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]; }; };