diff options
author | tv <tv@krebsco.de> | 2015-07-27 02:02:34 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-07-27 02:02:34 +0200 |
commit | 869eeb1dc1d3bfeddf67f882e0853b15e63dceb3 (patch) | |
tree | fa6bf616e54422468ef7f58c290a710b0710b9b9 /4lib/tv/modules.nix | |
parent | b9df7908fc96c6e809c3f22bfca50d8703ce12a1 (diff) |
* tv -> tv *
Diffstat (limited to '4lib/tv/modules.nix')
-rw-r--r-- | 4lib/tv/modules.nix | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/4lib/tv/modules.nix b/4lib/tv/modules.nix deleted file mode 100644 index 248e638..0000000 --- a/4lib/tv/modules.nix +++ /dev/null @@ -1,21 +0,0 @@ -let - pkgs = import <nixpkgs> {}; - inherit (pkgs.lib) concatMap hasAttr; -in rec { - - no-touch-args = { - config = throw "no-touch-args: can't touch config!"; - lib = throw "no-touch-args: can't touch lib!"; - pkgs = throw "no-touch-args: can't touch pkgs!"; - }; - - # list-imports : path -> [path] - # Return a module's transitive list of imports. - # XXX duplicates won't get eliminated from the result. - list-imports = path: - let module = import path no-touch-args; - imports = if hasAttr "imports" module - then concatMap list-imports module.imports - else []; - in [path] ++ imports; -} |