gonic: fix build on darwin

This commit is contained in:
Mario Rodas 2021-07-24 04:20:00 +00:00
parent 5a00bdb252
commit 04393d5dfd
2 changed files with 8 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{ lib, buildGoModule, fetchFromGitHub
{ lib, stdenv, buildGoModule, fetchFromGitHub
, pkg-config, taglib, alsa-lib
, zlib
, zlib, AudioToolbox, AppKit
# Disable on-the-fly transcoding,
# removing the dependency on ffmpeg.
@ -21,7 +21,9 @@ buildGoModule rec {
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ taglib alsa-lib zlib ];
buildInputs = [ taglib zlib ]
++ lib.optionals stdenv.isLinux [ alsa-lib ]
++ lib.optionals stdenv.isDarwin [ AudioToolbox AppKit ];
vendorSha256 = "0inxlqxnkglz4j14jav8080718a80nqdcl866lkql8r6zcxb4fm9";
# TODO(Profpatsch): write a test for transcoding support,

View file

@ -24581,7 +24581,9 @@ in
gollum = callPackage ../applications/misc/gollum { };
gonic = callPackage ../servers/gonic { };
gonic = callPackage ../servers/gonic {
inherit (darwin.apple_sdk.frameworks) AppKit AudioToolbox;
};
googleearth = callPackage ../applications/misc/googleearth { };