-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packaging request: tailwindcss cli #149333
Comments
Welcome to nixpkgs! There's a nixpkgs manual that contains useful information for packaging for nixpkgs. There are also specific sections for adding packages and specific languages. Here's what I did to package tailwindcss. |
Thanks, @jyooru for the warm welcome and the guidance. I did not know those docs were that accurate. |
Do you know by any chance why tailwindcss still does not appear on https://search.nixos.org/packages (unstable channel), while I can properly install it with The Is there anything special blocking me from finding it? Maybe there is a delay before it shows up on search.nixos.org. |
I've just tried installing it on my system and it's not working either. search.nixos.org is updated hourly: https://github.com/NixOS/nixos-search/actions/workflows/cron-nixpkgs.yml After a little investigation, it looks like there's a bigger problem here. I've tried a few PRs that add a new node package and none seem to be available on For example, #129668, added 9th of July:
Where as running it through the master branch (through flakes):
@Mic92, is this a bug worth making an issue for? |
Is the package already included in the channel commit? You not just need to check the time of the channel build but also what commit of nixpkgs finished, because it may be an old commit that just finished now to build. |
This works for me:
|
I confirm. From what I see, the package is included in the
And the last successful build of And so
However, I still don’t see it in https://search.nixos.org |
I don't think search.nixos.org indexes all packages in tailwindcss = nodePackages.tailwindcss; |
Are you sure about this? If I take for example And there are many other examples of packages that I can find in search.nixos.org belonging to |
# pkgs/top-level/all-packages.nix
nodePackages = dontRecurseIntoAttrs nodejs.pkgs; I believe |
Also, I just got the package working in a devShell (with flakes): # flake.nix
{
description = "Website development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
flake-utils.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; }; in
{
devShell = pkgs.mkShell {
packages = (with pkgs; [ nodejs ])
++ (with pkgs.nodePackages; [ prettier tailwindcss ]);
};
}
);
} |
looks like the import in nixos-search is broken: https://github.com/NixOS/nixos-search/runs/4521001235?check_suite_focus=true Tracked here: NixOS/nixos-search#389 |
Let’s first see what happens once the import is fixed then. Thanks for creating the issue @Mic92. |
Project description
Tailwindcss is a utility-first CSS framework. The team has recently built a cli to facilitate the compilation process.
Metadata
Here is also the link to the npm package containing the executable of the cli: https://www.npmjs.com/package/tailwindcss
It does not seem complicated to build in Nix but I have just never done that before so it feels a little overwhelming to me. Would appreciate a hand.
The text was updated successfully, but these errors were encountered: