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>
20 lines
450 B
Nix
20 lines
450 B
Nix
{ lib, newScope, wayfirePlugins }:
|
|
|
|
lib.makeExtensible (self: with self; {
|
|
inherit wayfirePlugins;
|
|
|
|
callPackage = newScope self;
|
|
|
|
wayfire = callPackage ./. { };
|
|
|
|
wcm = callPackage ./wcm.nix {
|
|
inherit (wayfirePlugins) wf-shell;
|
|
};
|
|
|
|
wrapWayfireApplication = callPackage ./wrapper.nix { };
|
|
|
|
withPlugins = selector: self // {
|
|
wayfire = wrapWayfireApplication wayfire selector;
|
|
wcm = wrapWayfireApplication wcm selector;
|
|
};
|
|
})
|