rauhala.info/tailwind/default.nix

21 lines
502 B
Nix
Raw Normal View History

2023-04-25 20:49:28 +03:00
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "tailwindcss-cli";
version = "3.3.1";
src = fetchurl {
url = "https://github.com/tailwindlabs/tailwindcss/releases/download/v${version}/tailwindcss-linux-x64";
sha256 = "sha256-i1ekM61t0SXR+iw9K9Z0y7cm3W4uQ4Kxodt/NK9fywg=";
};
dontUnpack = true;
dontStrip = true;
buildPhase = ''
cp $src tailwindcss
chmod u+x tailwindcss
'';
installPhase = ''
mkdir -p $out/bin
cp tailwindcss $out/bin/tailwindcss
'';
}