mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
build: fix #1
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -62,16 +62,18 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
packages = forEachSupportedSystem (
|
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: {
|
default = pkgs.buildGoModule (finalAttrs: {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
src = ./.;
|
src = ./.;
|
||||||
vendorHash = "sha256-EpGgfiCqJjHEOphV2x8FmXeIFls7eq2NVxb/or4NLUo=";
|
vendorHash = "sha256-EpGgfiCqJjHEOphV2x8FmXeIFls7eq2NVxb/or4NLUo=";
|
||||||
|
|
||||||
dependencies = with pkgs; [
|
dependencies = if withAdditionalServices then [ pkgs.ffmpeg_7 ] else [ ];
|
||||||
ffmpeg_7
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
installShellFiles
|
installShellFiles
|
||||||
|
|||||||
Reference in New Issue
Block a user