diff options
| author | tv <tv@krebsco.de> | 2015-06-14 18:48:53 +0200 | 
|---|---|---|
| committer | tv <tv@krebsco.de> | 2015-06-14 18:48:53 +0200 | 
| commit | 4d12e1768c703bbf527cdbe4ec83ed921c062ac4 (patch) | |
| tree | e685dbe1c30a47e6e0390bc7fbc5b5ce75652908 /lib | |
| parent | 0461e627156349281870d1a1bb3870fd299d9fb6 (diff) | |
lib: take lib instead of pkgs argument
Diffstat (limited to 'lib')
| -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 995e3db..26653d9 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 : | 
