2023-04-11 04:44:52 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, cmake
|
|
|
|
, ninja
|
|
|
|
, perl
|
2023-04-14 18:11:09 +00:00
|
|
|
, moveBuildTree
|
2023-04-11 04:44:52 +00:00
|
|
|
, srcs
|
|
|
|
, patches ? [ ]
|
|
|
|
}:
|
2021-10-16 12:22:24 +00:00
|
|
|
|
|
|
|
args:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (args) pname;
|
|
|
|
version = args.version or srcs.${pname}.version;
|
|
|
|
src = args.src or srcs.${pname}.src;
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation (args // {
|
|
|
|
inherit pname version src;
|
|
|
|
patches = args.patches or patches.${pname} or [ ];
|
|
|
|
|
2023-04-11 04:44:52 +00:00
|
|
|
buildInputs = args.buildInputs or [ ];
|
2023-04-14 18:11:09 +00:00
|
|
|
nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [ cmake ninja perl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ moveBuildTree ];
|
2023-04-11 04:44:52 +00:00
|
|
|
propagatedBuildInputs = args.qtInputs ++ (args.propagatedBuildInputs or [ ]);
|
|
|
|
|
2023-04-12 01:55:29 +00:00
|
|
|
moveToDev = false;
|
|
|
|
|
2021-10-16 12:22:24 +00:00
|
|
|
outputs = args.outputs or [ "out" "dev" ];
|
|
|
|
|
|
|
|
dontWrapQtApps = args.dontWrapQtApps or true;
|
2022-08-14 17:18:40 +00:00
|
|
|
|
2021-10-16 12:22:24 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.qt.io/";
|
|
|
|
description = "A cross-platform application framework for C++";
|
2022-10-27 20:48:13 +00:00
|
|
|
license = with licenses; [ fdl13Plus gpl2Plus lgpl21Plus lgpl3Plus ];
|
2021-10-16 12:22:24 +00:00
|
|
|
maintainers = with maintainers; [ milahu nickcao ];
|
2022-11-28 23:33:35 +00:00
|
|
|
platforms = platforms.unix;
|
2021-10-16 12:22:24 +00:00
|
|
|
} // (args.meta or { });
|
|
|
|
})
|