depot/third_party/nixpkgs/pkgs/applications/window-managers/wayfire/wrapper.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

32 lines
729 B
Nix

{ symlinkJoin, lib, makeWrapper, wayfire, plugins ? [ ] }:
symlinkJoin {
name = "wayfire-wrapped-${lib.getVersion wayfire}";
nativeBuildInputs = [ makeWrapper ];
paths = [
wayfire
] ++ plugins;
postBuild = ''
for binary in $out/bin/*; do
wrapProgram $binary \
--prefix WAYFIRE_PLUGIN_PATH : $out/lib/wayfire \
--prefix WAYFIRE_PLUGIN_XML_PATH : $out/share/wayfire/metadata
done
'';
preferLocalBuild = true;
passthru = wayfire.passthru // {
unwrapped = wayfire;
};
meta = wayfire.meta // {
# To prevent builds on hydra
hydraPlatforms = [];
# prefer wrapper over the package
priority = (wayfire.meta.priority or lib.meta.defaultPriority) - 1;
};
}