diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..3550bb8 --- /dev/null +++ b/flake.nix @@ -0,0 +1,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 = fetchurl { + url = "https://git.jojodev.com/jolheiser/tailwind-ctp/releases/download/v${version}/tailwind-ctp"; + hash = ""; + }; + 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 + ''; + }; + }; +}