diff --git a/flake.lock b/flake.lock index 7f70e20..c072857 100644 --- a/flake.lock +++ b/flake.lock @@ -1,6 +1,6 @@ { "nodes": { - "lib": { + "nixpkgslib": { "locked": { "lastModified": 1708821942, "narHash": "sha256-jd+E1SD59qty65pwqad2mftzkT6vW5nNFWVuvayh4Zw=", @@ -17,7 +17,7 @@ }, "root": { "inputs": { - "lib": "lib" + "nixpkgslib": "nixpkgslib" } } }, diff --git a/flake.nix b/flake.nix index f5e39d9..ec65cf0 100644 --- a/flake.nix +++ b/flake.nix @@ -1,16 +1,16 @@ { description = "Write composeable HTML with Nix!"; - inputs.lib.url = "github:nix-community/nixpkgs.lib"; + inputs.nixpkgslib.url = "github:nix-community/nixpkgs.lib"; - outputs = { self, lib }: let + outputs = { self, nixpkgslib }: let first = n: builtins.substring 0 n; dropFirst = n: string: builtins.substring n (builtins.stringLength string - n) string; last = n: string: builtins.substring (builtins.stringLength string - n) n string; dropLast = n: string: builtins.substring 0 (builtins.stringLength string - n) string; - escapix = import ./escape.nix lib.lib; + escapix = import ./escape.nix nixpkgslib.lib; inherit (escapix) escape; attrsetToHtmlAttrs = attrs: @@ -74,6 +74,6 @@ }; }; - result = builtins.scopedImport { inherit (self) raw __findFile; inherit lib; } /${builtins.getEnv "TARGET_FILE"}; + result = builtins.scopedImport { inherit (self) raw __findFile; inherit (nixpkgslib) lib; } /${builtins.getEnv "TARGET_FILE"}; }; }