depot/pkgs/applications/window-managers/wayfire/wrapper.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00: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;
};
}