diff options
author | tv <tv@shackspace.de> | 2015-07-27 02:02:34 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-07-27 02:02:34 +0200 |
commit | afb6afff1d0f81d8a0dcfd94fa8e46a849bb094f (patch) | |
tree | ebdbaf99b0e2fcde8be0bd43455955e5cd17b3be /4lib/tv/modules.nix | |
parent | 45b173c11ecc7d6e8a177d7121bd06d923691b4b (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 248e638ea..000000000 --- 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; -} |