nixpkgs/pkgs/development/ocaml-modules/farfadet/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

35 lines
903 B
Nix

{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg
, faraday
}:
if lib.versionOlder ocaml.version "4.3"
then throw "farfadet is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-farfadet";
version = "0.3";
src = fetchurl {
url = "https://github.com/oklm-wsh/Farfadet/releases/download/v${version}/farfadet-${version}.tbz";
sha256 = "0nlafnp0pwx0n4aszpsk6nvcvqi9im306p4jhx70si7k3xprlr2j";
};
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [ topkg ];
propagatedBuildInputs = [ faraday ];
strictDeps = true;
inherit (topkg) buildPhase installPhase;
meta = {
description = "Printf-like for Faraday library";
homepage = "https://github.com/oklm-wsh/Farfadet";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}