code-browser: ensure only one backend is enabled

This commit is contained in:
Jorge Acereda 2021-12-15 19:26:45 +01:00
parent 0241614f27
commit 3a4bb069a0

View File

@ -8,6 +8,8 @@
, withGtk3 ? false, gtk3
, mkDerivation ? stdenv.mkDerivation
}:
let onlyOneEnabled = xs: 1 == builtins.length (builtins.filter lib.id xs);
in assert onlyOneEnabled [ withQt withGtk2 withGtk3 ];
mkDerivation rec {
pname = "code-browser";
version = "8.0";