colord-gtk4: split out of colord-gtk

This commit is contained in:
Jan Tojnar 2022-02-19 04:43:53 +01:00
parent 0ae8b8e8e1
commit c8f3985050
2 changed files with 11 additions and 1 deletions

View file

@ -12,6 +12,7 @@
, docbook_xml_dtd_412
, libxslt
, glib
, withGtk4 ? false
, gtk3
, gtk4
, pkg-config
@ -49,8 +50,15 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [
colord
gtk3
] ++ (if withGtk4 then [
gtk4
] else [
gtk3
]);
mesonFlags = [
"-Dgtk4=${lib.boolToString withGtk4}"
"-Dgtk3=${lib.boolToString (!withGtk4)}"
];
meta = with lib; {

View file

@ -4212,6 +4212,8 @@ with pkgs;
colord-gtk = callPackage ../tools/misc/colord-gtk { };
colord-gtk4 = colord-gtk.override { withGtk4 = true; };
colordiff = callPackage ../tools/text/colordiff { };
connect = callPackage ../tools/networking/connect { };