diff options
author | Jakub Kozłowski <kubukoz@gmail.com> | 2022-04-22 01:27:36 +0200 |
---|---|---|
committer | Jakub Kozłowski <kubukoz@gmail.com> | 2022-04-22 01:27:36 +0200 |
commit | f3d70ac6634350b5bef3952b4f4d35e4420621e8 (patch) | |
tree | ac8ea1457b030ae7df99cc0715db0b9078e54642 /pkgs | |
parent | 659b91df0a8115c767b74b2667c2218e279c1c62 (diff) |
sampler: build on Darwin
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/misc/sampler/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/applications/misc/sampler/default.nix b/pkgs/applications/misc/sampler/default.nix index 2e1b94b6b6c7a..a020b15eea3e9 100644 --- a/pkgs/applications/misc/sampler/default.nix +++ b/pkgs/applications/misc/sampler/default.nix @@ -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"; |