From 374e8c8d61a13319d6bc2bb11da2b03b20468e8f Mon Sep 17 00:00:00 2001 From: jolheiser Date: Wed, 27 Sep 2023 10:41:17 -0500 Subject: [PATCH] wip: start flake Signed-off-by: jolheiser --- flake.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 flake.nix 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 + ''; + }; + }; +}