Loading pkgs/by-name/pr/prettier/package.nix +0 −54 Original line number Diff line number Diff line /** # Example Prettier with plugins and Vim Home Manager configuration ```nix pkgs.prettier.override { plugins = with pkgs.nodePackages; [ prettier-plugin-toml # ... ]; } ``` */ { fetchFromGitHub, lib, Loading @@ -23,26 +9,6 @@ plugins ? [ ], }: let /** # Example ```nix exportRelativePathOf (builtins.fromJSON "./package.json") => lib/node_modules/prettier-plugin-toml/./lib/index.cjs ``` # Type ``` exportRelativePathOf :: AttrSet => String ``` # Arguments packageJsonAttrs : Attribute set with shape similar to `package.json` file */ ## Blame NodeJS exportRelativePathOf = let Loading Loading @@ -80,26 +46,6 @@ let lib.attrByPath [ "prettier" "plugins" ] [ "null" ] packageJsonAttrs )) packageJsonAttrs; /** # Example ```nix nodeEntryPointOf pkgs.nodePackages.prettier-plugin-toml => /nix/store/<NAR_HASH>-prettier-plugin-toml-<VERSION>/lib/node_modules/prettier-plugin-toml/./lib/index.cjs ``` # Type ``` nodeEntryPointOf :: AttrSet => String ``` # Arguments plugin : Attribute set with `.pname` and `.outPath` defined */ nodeEntryPointOf = plugin: let Loading Loading
pkgs/by-name/pr/prettier/package.nix +0 −54 Original line number Diff line number Diff line /** # Example Prettier with plugins and Vim Home Manager configuration ```nix pkgs.prettier.override { plugins = with pkgs.nodePackages; [ prettier-plugin-toml # ... ]; } ``` */ { fetchFromGitHub, lib, Loading @@ -23,26 +9,6 @@ plugins ? [ ], }: let /** # Example ```nix exportRelativePathOf (builtins.fromJSON "./package.json") => lib/node_modules/prettier-plugin-toml/./lib/index.cjs ``` # Type ``` exportRelativePathOf :: AttrSet => String ``` # Arguments packageJsonAttrs : Attribute set with shape similar to `package.json` file */ ## Blame NodeJS exportRelativePathOf = let Loading Loading @@ -80,26 +46,6 @@ let lib.attrByPath [ "prettier" "plugins" ] [ "null" ] packageJsonAttrs )) packageJsonAttrs; /** # Example ```nix nodeEntryPointOf pkgs.nodePackages.prettier-plugin-toml => /nix/store/<NAR_HASH>-prettier-plugin-toml-<VERSION>/lib/node_modules/prettier-plugin-toml/./lib/index.cjs ``` # Type ``` nodeEntryPointOf :: AttrSet => String ``` # Arguments plugin : Attribute set with `.pname` and `.outPath` defined */ nodeEntryPointOf = plugin: let Loading