correctly wrap ffmpeg

This commit is contained in:
Gabriel Fontes
2022-01-29 05:31:41 -03:00
parent 90bc694427
commit de564d2a2b
4 changed files with 78 additions and 87 deletions

View File

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