Unverified Commit ec820a8d authored by Philip Taron's avatar Philip Taron
Browse files

haskellPackages.tailwind: enhance override to provide `tailwind` binary

This reverts to previous use of `tailwind` wrapper before 50f5683d removed it.

Since we already had an override, this makes it a little chunkier to maintain compatibility.
parent a6621bdf
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1426,6 +1426,16 @@ self: super: builtins.intersectAttrs super {
          pkgs.nodePackages."@tailwindcss/line-clamp"
          pkgs.nodePackages."@tailwindcss/typography"
        ];
        # Added a shim for the `tailwindcss` CLI entry point
        nativeBuildInputs = (oa.nativeBuildInputs or []) ++ [ pkgs.buildPackages.makeBinaryWrapper ];
        postInstall = (oa.postInstall or "") + ''
          nodePath=""
          for p in "$out" "${pkgs.nodePackages.postcss}" $plugins; do
            nodePath="$nodePath''${nodePath:+:}$p/lib/node_modules"
          done
          makeWrapper "$out/bin/tailwindcss" "$out/bin/tailwind" --prefix NODE_PATH : "$nodePath"
          unset nodePath
        '';
      })) super.tailwind;

  emanote = addBuildDepend pkgs.stork super.emanote;