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>
17 lines
221 B
Nix
17 lines
221 B
Nix
{ lib, debug, wrapQtAppsHook }:
|
|
|
|
let inherit (lib) optional; in
|
|
|
|
mkDerivation:
|
|
|
|
args:
|
|
|
|
let
|
|
args_ = {
|
|
|
|
nativeBuildInputs = (args.nativeBuildInputs or []) ++ [ wrapQtAppsHook ];
|
|
|
|
};
|
|
in
|
|
|
|
mkDerivation (args // args_)
|