3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/qt-5/5.9/qtserialport/default.nix

13 lines
364 B
Nix
Raw Normal View History

{ stdenv, qtSubmodule, lib, copyPathsToStore, qtbase, substituteAll, systemd }:
2017-03-25 23:16:51 +00:00
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"'';
}