Files
nixpkgs/pkgs/development/tools/qtcreator/with-plugins.nix

24 lines
429 B
Nix

{
pkgs,
lib,
qtcreator,
...
}:
f:
let
plugins_arg = builtins.foldl' (
acc: val: acc + "-pluginpath ${val.outPath}/lib/qtcreator/plugins/"
) "" f;
qtcreator_runner = pkgs.writeShellScriptBin "qtcreator" ''
exec ${lib.getExe qtcreator} ${plugins_arg} "$@"
'';
in
pkgs.symlinkJoin {
inherit (qtcreator) version meta;
name = "qtcreator-with-plugins";
paths = [
qtcreator_runner
qtcreator
];
}