mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
ocamlPackages.tw: init at 0-unstable-2026-06-23
(cherry picked from commit 8ea5e3ec1c)
This commit is contained in:
parent
8d4ea8c9ec
commit
804b536e84
3 changed files with 59 additions and 0 deletions
55
pkgs/development/ocaml-modules/tw/default.nix
Normal file
55
pkgs/development/ocaml-modules/tw/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
buildDunePackage,
|
||||
cascade,
|
||||
cmdliner,
|
||||
fetchFromGitHub,
|
||||
fmt,
|
||||
lib,
|
||||
ocaml,
|
||||
}:
|
||||
|
||||
buildDunePackage (finalAttrs: {
|
||||
pname = "tw";
|
||||
version = "0-unstable-2026-06-23";
|
||||
minimalOCamlVersion = "5.2";
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "samoht";
|
||||
repo = "tw";
|
||||
rev = "594d35df46ec2afcfe97632923331badf2940b93";
|
||||
hash = "sha256-vCRq0FCBIxc/AQg+R2Hig7nqwJGxgy2jedLbAsKaIoA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cascade ];
|
||||
buildInputs = [
|
||||
cmdliner
|
||||
fmt
|
||||
];
|
||||
|
||||
# Disabling tests because they check for byte-for-byte identical
|
||||
# output with tailwindcss, so they are tied to a specific
|
||||
# tailwindcss version, and would prevent independent upgrades of tw
|
||||
# and tailwindcss.
|
||||
doCheck = false;
|
||||
|
||||
outputs = [
|
||||
"bin"
|
||||
"lib"
|
||||
"out"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
dune install --prefix=$bin --libdir=$lib/lib/ocaml/${ocaml.version}/site-lib
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Type-safe Tailwind CSS v4 in OCaml";
|
||||
homepage = "https://github.com/samoht/tw";
|
||||
mainProgram = "tw";
|
||||
license = lib.licenses.isc;
|
||||
maintainers = [ lib.maintainers.vog ];
|
||||
};
|
||||
})
|
||||
|
|
@ -1292,6 +1292,8 @@ with pkgs;
|
|||
)
|
||||
);
|
||||
|
||||
tw = ocamlPackages.tw.bin;
|
||||
|
||||
wrapRetroArch = retroarch-bare.wrapper;
|
||||
|
||||
# Aliases kept here because they are easier to use
|
||||
|
|
|
|||
|
|
@ -2183,6 +2183,8 @@ let
|
|||
|
||||
tuntap = callPackage ../development/ocaml-modules/tuntap { };
|
||||
|
||||
tw = callPackage ../development/ocaml-modules/tw { };
|
||||
|
||||
twt = callPackage ../development/ocaml-modules/twt { };
|
||||
|
||||
type_eq = callPackage ../development/ocaml-modules/type_eq { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue