mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
14 lines
480 B
Nix
14 lines
480 B
Nix
{ lib, stdenv, qtModule, qtbase, qtmultimedia }:
|
|
|
|
qtModule {
|
|
pname = "qtlocation";
|
|
qtInputs = [ qtbase qtmultimedia ];
|
|
outputs = [ "bin" "out" "dev" ];
|
|
qmakeFlags = lib.optional stdenv.isDarwin [
|
|
# boost uses std::auto_ptr which has been disabled in clang with libcxx
|
|
# This flag re-enables this feature
|
|
# https://libcxx.llvm.org/docs/UsingLibcxx.html#c-17-specific-configuration-macros
|
|
"QMAKE_CXXFLAGS+=-D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR"
|
|
];
|
|
}
|