uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
45
pkgs/development/libraries/qt-6/qtModule.nix
Normal file
45
pkgs/development/libraries/qt-6/qtModule.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ stdenv, lib, perl, cmake, ninja, writeText }:
|
||||
|
||||
{ self, 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 [ ]) ++ [
|
||||
perl
|
||||
cmake
|
||||
ninja
|
||||
];
|
||||
propagatedBuildInputs = args.qtInputs ++ (args.propagatedBuildInputs or [ ]);
|
||||
|
||||
outputs = args.outputs or [ "out" "dev" ];
|
||||
|
||||
dontWrapQtApps = args.dontWrapQtApps or true;
|
||||
postInstall = ''
|
||||
if [ ! -z "$dev" ]; then
|
||||
mkdir "$dev"
|
||||
for dir in bin libexec mkspecs
|
||||
do
|
||||
moveToOutput "$dir" "$dev"
|
||||
done
|
||||
fi
|
||||
${args.postInstall or ""}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.qt.io/";
|
||||
description = "A cross-platform application framework for C++";
|
||||
license = with licenses; [ fdl13 gpl2 lgpl21 lgpl3 ];
|
||||
maintainers = with maintainers; [ milahu nickcao ];
|
||||
platforms = platforms.linux;
|
||||
} // (args.meta or { });
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue