Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Philipp | 21610dba04 | |
Philipp | 8a336b8cd9 |
|
@ -30,6 +30,7 @@
|
||||||
, mpg123
|
, mpg123
|
||||||
, twolame
|
, twolame
|
||||||
, gtkSupport ? false, gtk3 ? null
|
, gtkSupport ? false, gtk3 ? null
|
||||||
|
, qt5Support ? false, qt5 , lreleaseSupport ? false
|
||||||
, raspiCameraSupport ? false, libraspberrypi ? null
|
, raspiCameraSupport ? false, libraspberrypi ? null
|
||||||
, enableJack ? true, libjack2
|
, enableJack ? true, libjack2
|
||||||
, libXdamage
|
, libXdamage
|
||||||
|
@ -45,6 +46,7 @@
|
||||||
|
|
||||||
assert gtkSupport -> gtk3 != null;
|
assert gtkSupport -> gtk3 != null;
|
||||||
assert raspiCameraSupport -> ((libraspberrypi != null) && stdenv.isLinux && stdenv.isAarch64);
|
assert raspiCameraSupport -> ((libraspberrypi != null) && stdenv.isLinux && stdenv.isAarch64);
|
||||||
|
assert lreleaseSupport -> qt5Support;
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (stdenv.lib) optionals;
|
inherit (stdenv.lib) optionals;
|
||||||
|
@ -102,6 +104,13 @@ stdenv.mkDerivation rec {
|
||||||
] ++ optionals gtkSupport [
|
] ++ optionals gtkSupport [
|
||||||
# for gtksink
|
# for gtksink
|
||||||
gtk3
|
gtk3
|
||||||
|
] ++ optionals qt5Support (with qt5; [
|
||||||
|
qtbase
|
||||||
|
qtdeclarative
|
||||||
|
qtwayland
|
||||||
|
qtx11extras
|
||||||
|
]) ++ optionals lreleaseSupport [
|
||||||
|
qt5.qttools
|
||||||
] ++ optionals stdenv.isDarwin [
|
] ++ optionals stdenv.isDarwin [
|
||||||
darwin.apple_sdk.frameworks.Cocoa
|
darwin.apple_sdk.frameworks.Cocoa
|
||||||
] ++ optionals stdenv.isLinux [
|
] ++ optionals stdenv.isLinux [
|
||||||
|
@ -118,7 +127,8 @@ stdenv.mkDerivation rec {
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
||||||
"-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing
|
"-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing
|
||||||
"-Dqt5=disabled" # not clear as of writing how to correctly pass in the required qt5 deps
|
] ++ optionals (!qt5Support) [
|
||||||
|
"-Dqt5=disabled"
|
||||||
] ++ optionals (!gtkSupport) [
|
] ++ optionals (!gtkSupport) [
|
||||||
"-Dgtk3=disabled"
|
"-Dgtk3=disabled"
|
||||||
] ++ optionals (!enableJack) [
|
] ++ optionals (!enableJack) [
|
||||||
|
@ -131,7 +141,6 @@ stdenv.mkDerivation rec {
|
||||||
"-Dv4l2-gudev=disabled" # Linux-only
|
"-Dv4l2-gudev=disabled" # Linux-only
|
||||||
"-Dv4l2=disabled" # Linux-only
|
"-Dv4l2=disabled" # Linux-only
|
||||||
"-Dximagesrc=disabled" # Linux-only
|
"-Dximagesrc=disabled" # Linux-only
|
||||||
"-Dpulse=disabled" # TODO check if we can keep this enabled
|
|
||||||
] ++ optionals (!raspiCameraSupport) [
|
] ++ optionals (!raspiCameraSupport) [
|
||||||
"-Drpicamsrc=disabled"
|
"-Drpicamsrc=disabled"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue