Home

tailwind-ctp @dfd89f68fbf41584fdadf83349080b26f1cc4de7 - refs - log -
-
https://git.jolheiser.com/tailwind-ctp.git
TailwindCSS + Catppuccin
tailwind-ctp / flake.nix
- raw -
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  description = "TailwindCSS + Catppuccin";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
  };

  outputs =
    { self, nixpkgs }:
    let
      pkgs = nixpkgs.legacyPackages.x86_64-linux;
    in
    {
      packages.x86_64-linux.default =
        let
          drv = pkgs.buildNpmPackage {
            pname = "tailwind-ctp";
            version = "0.0.0";
            src = ./.;
            npmDepsHash = "sha256-Fm6c7bZ8raEJw06YZA6iMRoGwWU9RVkPGd5vCjXUAsA=";
            dontNpmBuild = true;
            installPhase = ''
              mkdir -p $out
              cp -r . $out/
            '';
          };
        in
        pkgs.writeShellApplication {
          name = "tailwind-ctp";
          runtimeInputs = [ pkgs.nodejs ];
          text = ''
            node ${drv}/index.js "$@"
          '';
        };
    };
}