lib: take lib instead of pkgs argument

This commit is contained in:
tv 2015-06-14 18:48:53 +02:00
parent 390e1f6650
commit dba033ed10

View File

@ -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 :