nodePackages.@tailwindcss/typography: drop
This commit is contained in:
@@ -65,6 +65,8 @@ mapAliases {
|
||||
"@tailwindcss/language-server" = pkgs.tailwindcss-language-server; # added 2024-01-22
|
||||
"@tailwindcss/line-clamp" =
|
||||
throw "@tailwindcss/line-clamp has been removed because it is a library and your JS project should lock it instead."; # Added 2026-02-19
|
||||
"@tailwindcss/typography" =
|
||||
throw "@tailwindcss/typography has been removed because it is a library and your JS project should lock it instead."; # Added 2026-02-19
|
||||
"@uppy/companion" = pkgs.uppy-companion; # Added 2025-11-01
|
||||
"@volar/vue-language-server" = pkgs.vue-language-server; # added 2024-06-15
|
||||
"@vue/language-server" = pkgs.vue-language-server; # added 2024-06-15
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
[
|
||||
"@tailwindcss/typography",
|
||||
"browserify",
|
||||
"node2nix",
|
||||
"sass",
|
||||
|
||||
-81
@@ -1614,15 +1614,6 @@ let
|
||||
sha512 = "6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==";
|
||||
};
|
||||
};
|
||||
"cssesc-3.0.0" = {
|
||||
name = "cssesc";
|
||||
packageName = "cssesc";
|
||||
version = "3.0.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz";
|
||||
sha512 = "/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==";
|
||||
};
|
||||
};
|
||||
"csso-5.0.5" = {
|
||||
name = "csso";
|
||||
packageName = "csso";
|
||||
@@ -2964,15 +2955,6 @@ let
|
||||
sha512 = "SXL66C731p0xPDC5LZg4wI5H+dJo/EO4KTqOMwLYCH3+FmmfAKJEZCm6ohGpI+T1xwsDsJCfL4OnhorllvlTPQ==";
|
||||
};
|
||||
};
|
||||
"lodash.castarray-4.4.0" = {
|
||||
name = "lodash.castarray";
|
||||
packageName = "lodash.castarray";
|
||||
version = "4.4.0";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/lodash.castarray/-/lodash.castarray-4.4.0.tgz";
|
||||
sha512 = "aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==";
|
||||
};
|
||||
};
|
||||
"lodash.isempty-4.4.0" = {
|
||||
name = "lodash.isempty";
|
||||
packageName = "lodash.isempty";
|
||||
@@ -2982,15 +2964,6 @@ let
|
||||
sha512 = "oKMuF3xEeqDltrGMfDxAPGIVMSSRv8tbRSODbrs4KGsRRLEhrW8N8Rd4DRgB2+621hY8A8XwwrTVhXWpxFvMzg==";
|
||||
};
|
||||
};
|
||||
"lodash.isplainobject-4.0.6" = {
|
||||
name = "lodash.isplainobject";
|
||||
packageName = "lodash.isplainobject";
|
||||
version = "4.0.6";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz";
|
||||
sha512 = "oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==";
|
||||
};
|
||||
};
|
||||
"lodash.memoize-3.0.4" = {
|
||||
name = "lodash.memoize";
|
||||
packageName = "lodash.memoize";
|
||||
@@ -3000,15 +2973,6 @@ let
|
||||
sha512 = "eDn9kqrAmVUC1wmZvlQ6Uhde44n+tXpqPrN8olQJbttgh0oKclk+SF54P47VEGE9CEiMeRwAP8BaM7UHvBkz2A==";
|
||||
};
|
||||
};
|
||||
"lodash.merge-4.6.2" = {
|
||||
name = "lodash.merge";
|
||||
packageName = "lodash.merge";
|
||||
version = "4.6.2";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz";
|
||||
sha512 = "0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==";
|
||||
};
|
||||
};
|
||||
"lodash.omitby-4.6.0" = {
|
||||
name = "lodash.omitby";
|
||||
packageName = "lodash.omitby";
|
||||
@@ -3891,15 +3855,6 @@ let
|
||||
sha512 = "/eoEylGWyy6/DOiMP5lmFRdmDKThqgn7D6hP2dXKJI/0rJSO1ADFNngZfDzxL0YAxFvws+Rtpuji1YIHj4mySA==";
|
||||
};
|
||||
};
|
||||
"postcss-selector-parser-6.0.10" = {
|
||||
name = "postcss-selector-parser";
|
||||
packageName = "postcss-selector-parser";
|
||||
version = "6.0.10";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz";
|
||||
sha512 = "IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==";
|
||||
};
|
||||
};
|
||||
"prettier-2.8.8" = {
|
||||
name = "prettier";
|
||||
packageName = "prettier";
|
||||
@@ -4773,15 +4728,6 @@ let
|
||||
sha512 = "YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==";
|
||||
};
|
||||
};
|
||||
"tailwindcss-4.0.14" = {
|
||||
name = "tailwindcss";
|
||||
packageName = "tailwindcss";
|
||||
version = "4.0.14";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.0.14.tgz";
|
||||
sha512 = "92YT2dpt671tFiHH/e1ok9D987N9fHD5VWoly1CdPD/Cd1HMglvZwP3nx2yTj2lbXDAHt8QssZkxTLCCTNL+xw==";
|
||||
};
|
||||
};
|
||||
"tar-6.1.15" = {
|
||||
name = "tar";
|
||||
packageName = "tar";
|
||||
@@ -5289,33 +5235,6 @@ let
|
||||
};
|
||||
in
|
||||
{
|
||||
"@tailwindcss/typography" = nodeEnv.buildNodePackage {
|
||||
name = "_at_tailwindcss_slash_typography";
|
||||
packageName = "@tailwindcss/typography";
|
||||
version = "0.5.16";
|
||||
src = fetchurl {
|
||||
url = "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.16.tgz";
|
||||
sha512 = "0wDLwCVF5V3x3b1SGXPCDcdsbDHMBe+lkFzBRaHeLvNi+nrrnZ1lA18u+OTWO8iSWU2GxUOCvlXtDuqftc1oiA==";
|
||||
};
|
||||
dependencies = [
|
||||
sources."cssesc-3.0.0"
|
||||
sources."lodash.castarray-4.4.0"
|
||||
sources."lodash.isplainobject-4.0.6"
|
||||
sources."lodash.merge-4.6.2"
|
||||
sources."postcss-selector-parser-6.0.10"
|
||||
sources."tailwindcss-4.0.14"
|
||||
sources."util-deprecate-1.0.2"
|
||||
];
|
||||
buildInputs = globalBuildInputs;
|
||||
meta = {
|
||||
description = "Tailwind CSS plugin for automatically styling plain HTML content with beautiful typographic defaults";
|
||||
homepage = "https://github.com/tailwindlabs/tailwindcss-typography#readme";
|
||||
license = "MIT";
|
||||
};
|
||||
production = true;
|
||||
bypassCache = true;
|
||||
reconstructLock = true;
|
||||
};
|
||||
browserify = nodeEnv.buildNodePackage {
|
||||
name = "browserify";
|
||||
packageName = "browserify";
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
{
|
||||
runCommand,
|
||||
tailwindcss,
|
||||
nodePackages,
|
||||
}:
|
||||
|
||||
let
|
||||
|
||||
inherit (tailwindcss) packageName version;
|
||||
|
||||
tailwindcssInput = builtins.toFile "input.css" ''
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
'';
|
||||
|
||||
tailwindcssWithPlugins = tailwindcss.overrideAttrs (oldAttrs: {
|
||||
plugins = [
|
||||
nodePackages."@tailwindcss/typography"
|
||||
];
|
||||
});
|
||||
|
||||
tailwindcssWithPluginsConfig = builtins.toFile "tailwind.config.js" ''
|
||||
module.exports = {
|
||||
content: ["./with-typography.input"],
|
||||
plugins: [
|
||||
require('@tailwindcss/typography'),
|
||||
],
|
||||
}
|
||||
'';
|
||||
|
||||
in
|
||||
|
||||
runCommand "${packageName}-tests" { meta.timeout = 60; } ''
|
||||
mkdir $out
|
||||
|
||||
# Ensure CLI runs
|
||||
${tailwindcss}/bin/tailwind --help > /dev/null
|
||||
${tailwindcss}/bin/tailwindcss --help > /dev/null
|
||||
|
||||
# Ensure CLI with plugins runs
|
||||
echo '"ml-4 prose"' > ./with-typography.input
|
||||
${tailwindcssWithPlugins}/bin/tailwind \
|
||||
--config ${tailwindcssWithPluginsConfig} \
|
||||
--input ${tailwindcssInput} \
|
||||
--output $out/with-typography.css
|
||||
|
||||
grep -q ml-4 $out/with-typography.css
|
||||
grep -q prose $out/with-typography.css
|
||||
''
|
||||
Reference in New Issue
Block a user