lib: take lib instead of pkgs argument
This commit is contained in:
parent
390e1f6650
commit
dba033ed10
@ -1,16 +1,16 @@
|
|||||||
{ pkgs, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
with builtins;
|
with builtins;
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (pkgs.lib) stringAsChars;
|
inherit (lib) stringAsChars;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
# "7.4.335" -> "74"
|
# "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 :
|
concat = xs :
|
||||||
|
Loading…
Reference in New Issue
Block a user