1 { lib, stdenv, fetchurl, sndio, libbsd }:
3 stdenv.mkDerivation (finalAttrs: {
8 url = "http://www.sndio.org/aucatctl-${finalAttrs.version}.tar.gz";
9 sha256 = "524f2fae47db785234f166551520d9605b9a27551ca438bd807e3509ce246cf0";
12 buildInputs = [ sndio ]
13 ++ lib.optional (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isBSD)
16 outputs = [ "out" "man" ];
19 makeFlagsArray+=("PREFIX=$out")
20 '' + lib.optionalString
21 (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isBSD) ''
22 makeFlagsArray+=(LDADD="-lsndio -lbsd")
24 # Fix warning about implicit declaration of function 'strlcpy'
25 substituteInPlace aucatctl.c \
26 --replace '#include <string.h>' '#include <bsd/string.h>'
30 description = "Utility that allows to send MIDI messages to control sndiod and/or aucat volumes";
31 homepage = "http://www.sndio.org";
32 license = licenses.isc;
33 maintainers = with maintainers; [ sna ];
34 platforms = platforms.unix;
35 mainProgram = "aucatctl";