From 9f48d9eab50549f5191ca5c8fc91dd311dcaf364 Mon Sep 17 00:00:00 2001 From: chaos Date: Sat, 11 Nov 2023 12:08:32 +0000 Subject: [PATCH] fix building with new nixpkgs --- flake.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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]; }; };