summary refs log tree commit diff
path: root/pkgs/development/libraries/qt-5/5.9/qtserialport/default.nix
blob: 925e8a808f25d0db3487221a99c9fe17662822e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{ stdenv, qtSubmodule, lib, copyPathsToStore, qtbase, substituteAll, systemd }:

let inherit (lib) getLib optional; in

qtSubmodule {
  name = "qtserialport";
  qtInputs = [ qtbase ];
  patches =  copyPathsToStore (lib.readPathsFromFile ./. ./series);
  NIX_CFLAGS_COMPILE =
    optional stdenv.isLinux
    ''-DNIXPKGS_LIBUDEV="${getLib systemd}/lib/libudev"'';
}