Merge pull request #169649 from kubukoz/sampler-add-darwin

sampler: build on Darwin
This commit is contained in:
Anderson Torres 2022-04-24 18:13:11 -03:00 committed by GitHub
commit c64602e6f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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";