mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
code-browser: ensure only one backend is enabled
This commit is contained in:
parent
0241614f27
commit
3a4bb069a0
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user