diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2018-12-11 18:10:48 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2018-12-11 18:10:48 +0300 |
commit | 8b0968b2054d3bb8d90b5ac056727f7c2ebeaed3 (patch) | |
tree | d03b70f693463fc836a8dbe4240424d2547530c8 /pkgs/default.nix | |
parent | c4273035cf5876e3ba8ed2c6b492d31c2de290ee (diff) | |
download | nixsap-8b0968b2054d3bb8d90b5ac056727f7c2ebeaed3.tar.gz |
(* HUGE *) Use nixpkgs overlays
Diffstat (limited to 'pkgs/default.nix')
-rw-r--r-- | pkgs/default.nix | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix index cb8c91a..6122987 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -1,21 +1,12 @@ -{ nixpkgs ? <nixpkgs> -, system ? builtins.currentSystem -}: - +self: super: let + all = super.lib.attrNames ( + super.lib.filterAttrs + ( n: _: n != "default.nix" && ! super.lib.hasPrefix "." n ) + (builtins.readDir ./.) + ); +in super.lib.listToAttrs (map (f: + { name = super.lib.removeSuffix ".nix" f; + value = super.callPackage (./. + "/${f}") {}; } +) all) - lib = import (nixpkgs + "/lib"); - inherit (lib) evalModules; - - - evaluated = evalModules { - modules = [ - { nixpkgs.system = system; } - (import (nixpkgs + "/nixos/modules/misc/nixpkgs.nix")) - (import ../modules/pkgs) - ]; - }; - - inherit (evaluated.config._module.args) pkgs; - -in pkgs |