Skip to content

Commit

Permalink
nix: add attrs for enabling ffmpeg & libwebp
Browse files Browse the repository at this point in the history
  • Loading branch information
akshettrj committed Jun 30, 2024
1 parent fca7de2 commit 294531d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nix/pkgs/watgbridge-dev.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{ lib
, buildGoApplication
, enableFfmpeg ? false
, enableLibWebPTools ? false
, ffmpeg
, libwebp
}:

let
Expand Down Expand Up @@ -30,6 +34,13 @@ in buildGoApplication rec {
pwd = localSrc;
src = localSrc;

buildInputs = [
] ++ lib.optionals enableFfmpeg [
ffmpeg
] ++ lib.optionals enableLibWebPTools [
libwebp
];

ldflags = [ "-s" "-w" ];

meta = with lib; rec {
Expand Down

0 comments on commit 294531d

Please sign in to comment.