From 63d9892e7220d2d6c305478f93cb9f79c5a206a3 Mon Sep 17 00:00:00 2001 From: Superredstone Date: Sat, 14 Feb 2026 20:19:22 +0100 Subject: [PATCH] build: fix #1 --- flake.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index e7176a4..a9ef144 100644 --- a/flake.nix +++ b/flake.nix @@ -62,16 +62,18 @@ } ); packages = forEachSupportedSystem ( - { pkgs }: + { + pkgs, + # Set this to true to ship with FFmpeg which is required to download songs from amazon and qobuz + withAdditionalServices ? false, + }: { default = pkgs.buildGoModule (finalAttrs: { inherit pname version; src = ./.; vendorHash = "sha256-EpGgfiCqJjHEOphV2x8FmXeIFls7eq2NVxb/or4NLUo="; - dependencies = with pkgs; [ - ffmpeg_7 - ]; + dependencies = if withAdditionalServices then [ pkgs.ffmpeg_7 ] else [ ]; nativeBuildInputs = with pkgs; [ installShellFiles