cleanup unused deps

This commit is contained in:
Gabriel Fontes
2023-06-11 19:47:04 -03:00
parent 5b573abcc6
commit fc2336facd
2 changed files with 4 additions and 8 deletions

View File

@@ -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; let manifest = (lib.importTOML ./Cargo.toml).package;
in rustPlatform.buildRustPackage { in rustPlatform.buildRustPackage {
@@ -7,8 +7,8 @@ in rustPlatform.buildRustPackage {
src = lib.cleanSource ./.; src = lib.cleanSource ./.;
nativeBuildInputs = [ pkg-config autoconf automake makeWrapper ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ alsa-lib libopus ffmpeg ]; buildInputs = [ libopus ];
cargoLock = { cargoLock = {
lockFile = ./Cargo.lock; lockFile = ./Cargo.lock;
@@ -20,10 +20,6 @@ in rustPlatform.buildRustPackage {
}; };
}; };
postFixup = ''
wrapProgram $out/bin/disconic --set PATH ${lib.makeBinPath [ ffmpeg ]}
'';
meta = with lib; { meta = with lib; {
description = manifest.description; description = manifest.description;
homepage = manifest.homepage; homepage = manifest.homepage;

View File

@@ -41,7 +41,7 @@
devShells = forAllPkgs (pkgs: { devShells = forAllPkgs (pkgs: {
default = pkgs.mkShell { default = pkgs.mkShell {
inputsFrom = [(mkPackage pkgs)]; inputsFrom = [(mkPackage pkgs)];
buildInputs = with pkgs; [ clippy rust-analyzer rustc rustfmt ffmpeg ]; buildInputs = with pkgs; [ clippy rust-analyzer rustc rustfmt ];
}; };
}); });