correctly wrap ffmpeg
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user