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>
11 lines
145 B
Nix
11 lines
145 B
Nix
{ newScope, pkgs }:
|
|
|
|
let
|
|
|
|
callPackage = newScope (pkgs // plugins);
|
|
|
|
plugins = import ./plugins.nix { inherit callPackage; };
|
|
|
|
in
|
|
|
|
plugins
|