mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-28 08:00:33 +00:00
libvisual: disable building examples when cross compiling
the examples depend on SDL, and sdl-config is not available when crossing
This commit is contained in:
parent
463ab8deaa
commit
11b095e880
@ -4,6 +4,8 @@
|
|||||||
, SDL
|
, SDL
|
||||||
, glib
|
, glib
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
# sdl-config is not available when crossing
|
||||||
|
, withExamples ? stdenv.buildPlatform == stdenv.hostPlatform
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -16,7 +18,9 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ SDL glib ];
|
buildInputs = lib.optional withExamples SDL ++ [ glib ];
|
||||||
|
|
||||||
|
configureFlags = lib.optional (!withExamples) "--disable-examples";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "An abstraction library for audio visualisations";
|
description = "An abstraction library for audio visualisations";
|
||||||
|
Loading…
Reference in New Issue
Block a user