aumix: fix build when not using GTK

This commit is contained in:
Theodore Ni 2022-10-07 12:09:14 -07:00
parent 2ae4a931aa
commit 9047260b63
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -28,10 +28,13 @@ stdenv.mkDerivation rec {
})
];
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = lib.optionals gtkGUI [ pkg-config ];
buildInputs = [ gettext ncurses ]
++ lib.optionals gtkGUI [ gtk2 ];
configureFlags = lib.optionals (!gtkGUI) ["--without-gtk"];
meta = with lib; {
description = "Audio mixer for X and the console";
longDescription = ''