sampler: build on Darwin

This commit is contained in:
Jakub Kozłowski 2022-04-22 01:27:36 +02:00
parent 659b91df0a
commit f3d70ac663

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, alsa-lib }:
{ lib, buildGoModule, fetchFromGitHub, darwin, libiconv, alsa-lib, stdenv }:
buildGoModule rec {
pname = "sampler";
@ -17,7 +17,10 @@ buildGoModule rec {
subPackages = [ "." ];
buildInputs = [ alsa-lib ];
buildInputs = lib.optional stdenv.isLinux alsa-lib
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.OpenAL
];
meta = with lib; {
description = "Tool for shell commands execution, visualization and alerting";