5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
40 lines
1,023 B
Nix
40 lines
1,023 B
Nix
{ lib
|
|
, stdenv
|
|
, cmake
|
|
, ninja
|
|
, perl
|
|
, moveBuildTree
|
|
, srcs
|
|
, patches ? [ ]
|
|
}:
|
|
|
|
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 or [ ]) ++ (args.propagatedBuildInputs or [ ]);
|
|
|
|
moveToDev = false;
|
|
|
|
outputs = args.outputs or [ "out" "dev" ];
|
|
|
|
dontWrapQtApps = args.dontWrapQtApps or true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.qt.io/";
|
|
description = "A cross-platform application framework for C++";
|
|
license = with licenses; [ fdl13Plus gpl2Plus lgpl21Plus lgpl3Plus ];
|
|
maintainers = with maintainers; [ milahu nickcao ];
|
|
platforms = platforms.unix;
|
|
} // (args.meta or { });
|
|
})
|