Home

tailwind-ctp @main - refs - log -
https://git.jolheiser.com/tailwind-ctp.git
TailwindCSS + Catppuccin
Raw - flake.nix
 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
{
  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 = pkgs.stdenv.mkDerivation rec {
      pname = "tailwind-ctp";
      version = "3.3.3";
      src = pkgs.fetchurl {
        url = "https://git.jojodev.com/jolheiser/tailwind-ctp/releases/download/v${version}/tailwind-ctp";
        hash = "sha256-sS6TjtKhe6qwDPj4zzDjXfp/90Cpcg8AOtjQHoX/PSo=";
      };
      dontUnpack = true;
      dontConfigure = true;
      dontBuild = true;
      dontFixup = true;
      installPhase = ''
        mkdir -p $out/bin
        cp ${src} $out/bin/tailwind-ctp
        chmod 755 $out/bin/tailwind-ctp
      '';
    };
  };
}