Skip to content

Instantly share code, notes, and snippets.

@tilpner
Created January 7, 2018 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tilpner/c7169e638e3949b344467c4d33afe362 to your computer and use it in GitHub Desktop.
Save tilpner/c7169e638e3949b344467c4d33afe362 to your computer and use it in GitHub Desktop.
self: super:
with builtins;
let
list = readDir ../pkgs;
in listToAttrs (map
(name: {
name = replaceStrings [".nix"] [""] name;
value = self.lib.callPackageWith
(self // self.xlibs // {
overlaySelf = self;
overlaySuper = super;
}) (../pkgs + ("/" + name)) { };
}) (attrNames list))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment