nixpkgs/pkgs/development/libraries/qt-6/qtModule.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1014 B
Nix
Raw Normal View History

{ lib
, stdenv
, cmake
, ninja
, perl
, moveBuildTree
, 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 [ ];
buildInputs = args.buildInputs or [ ];
nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [ cmake ninja perl ]
++ lib.optionals stdenv.isDarwin [ moveBuildTree ];
propagatedBuildInputs = args.qtInputs ++ (args.propagatedBuildInputs or [ ]);
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 { });
})