diff --git a/default.nix b/default.nix index 2b771c2..c42b2f6 100644 --- a/default.nix +++ b/default.nix @@ -1,4 +1,4 @@ -{ lib, rustPlatform, pkg-config, autoconf, alsa-lib, automake, libopus, ffmpeg, makeWrapper }: +{ lib, rustPlatform, pkg-config, libopus }: let manifest = (lib.importTOML ./Cargo.toml).package; in rustPlatform.buildRustPackage { @@ -7,8 +7,8 @@ in rustPlatform.buildRustPackage { src = lib.cleanSource ./.; - nativeBuildInputs = [ pkg-config autoconf automake makeWrapper ]; - buildInputs = [ alsa-lib libopus ffmpeg ]; + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ libopus ]; cargoLock = { lockFile = ./Cargo.lock; @@ -20,10 +20,6 @@ in rustPlatform.buildRustPackage { }; }; - postFixup = '' - wrapProgram $out/bin/disconic --set PATH ${lib.makeBinPath [ ffmpeg ]} - ''; - meta = with lib; { description = manifest.description; homepage = manifest.homepage; diff --git a/flake.nix b/flake.nix index 13db4bd..c583d1d 100644 --- a/flake.nix +++ b/flake.nix @@ -41,7 +41,7 @@ devShells = forAllPkgs (pkgs: { default = pkgs.mkShell { inputsFrom = [(mkPackage pkgs)]; - buildInputs = with pkgs; [ clippy rust-analyzer rustc rustfmt ffmpeg ]; + buildInputs = with pkgs; [ clippy rust-analyzer rustc rustfmt ]; }; });