diff options
author | tv <tv@shackspace.de> | 2015-06-14 18:48:53 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-06-14 18:48:53 +0200 |
commit | dba033ed10838c9ff8c1720d41f8845c5199927e (patch) | |
tree | e685dbe1c30a47e6e0390bc7fbc5b5ce75652908 | |
parent | 390e1f6650e4302746d215922f4c1ddccd96ea59 (diff) |
lib: take lib instead of pkgs argument
-rw-r--r-- | lib/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/default.nix b/lib/default.nix index 995e3dbcd..26653d96d 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -1,16 +1,16 @@ -{ pkgs, ... }: +{ lib, ... }: with builtins; let - inherit (pkgs.lib) stringAsChars; + inherit (lib) stringAsChars; in { # "7.4.335" -> "74" - majmin = with pkgs.lib; x : concatStrings (take 2 (splitString "." x)); + majmin = with lib; x : concatStrings (take 2 (splitString "." x)); concat = xs : |