mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
fd29f6685f
Stay consistent with other multiple output packages.
21 lines
528 B
Nix
21 lines
528 B
Nix
{ stdenv, qtSubmodule, copyPathsToStore, python2, qtbase, qtsvg, qtxmlpatterns }:
|
|
|
|
with stdenv.lib;
|
|
|
|
qtSubmodule {
|
|
name = "qtdeclarative";
|
|
patches = copyPathsToStore (readPathsFromFile ./. ./series);
|
|
qtInputs = [ qtbase qtsvg qtxmlpatterns ];
|
|
nativeBuildInputs = [ python2 ];
|
|
outputs = [ "bin" "dev" "out" ];
|
|
|
|
preConfigure = ''
|
|
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_QML2_IMPORT_PREFIX=\"$qtQmlPrefix\""
|
|
'';
|
|
|
|
postInstall = ''
|
|
moveToOutput "$qtPluginPrefix" "$bin"
|
|
moveToOutput "$qtQmlPrefix" "$bin"
|
|
'';
|
|
}
|