9 inherit (tailwindcss) packageName version;
11 tailwindcssInput = builtins.toFile "input.css" ''
17 tailwindcssWithPlugins = tailwindcss.overrideAttrs (oldAttrs: {
19 nodePackages."@tailwindcss/typography"
23 tailwindcssWithPluginsConfig = builtins.toFile "tailwind.config.js" ''
25 content: ["./with-typography.input"],
27 require('@tailwindcss/typography'),
34 runCommand "${packageName}-tests" { meta.timeout = 60; } ''
38 ${tailwindcss}/bin/tailwind --help > /dev/null
39 ${tailwindcss}/bin/tailwindcss --help > /dev/null
41 # Ensure CLI with plugins runs
42 echo '"ml-4 prose"' > ./with-typography.input
43 ${tailwindcssWithPlugins}/bin/tailwind \
44 --config ${tailwindcssWithPluginsConfig} \
45 --input ${tailwindcssInput} \
46 --output $out/with-typography.css
48 grep -q ml-4 $out/with-typography.css
49 grep -q prose $out/with-typography.css