cleanup unused deps
This commit is contained in:
10
default.nix
10
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;
|
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;
|
||||||
|
|||||||
@@ -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 ];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user