ocamlPackages.uuseg: set pname instead of name (#484537)

This commit is contained in:
Jo
2026-02-06 18:09:14 +00:00
committed by GitHub
@@ -13,24 +13,19 @@
cmdlinerSupport ? lib.versionAtLeast cmdliner.version "1.1",
}:
let
stdenv.mkDerivation (finalAttrs: {
name = "ocaml${ocaml.version}-${finalAttrs.pname}-${finalAttrs.version}";
pname = "uuseg";
webpage = "https://erratique.ch/software/${pname}";
in
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-${pname}-${version}";
inherit version;
src = fetchurl {
url = "${webpage}/releases/${pname}-${version}.tbz";
url = "https://erratique.ch/software/uuseg/releases/uuseg-${finalAttrs.version}.tbz";
hash =
{
"17.0.0" = "sha256-Fn41ajEFbMv3LLkD+zqy76217/kWFS7q9jm9ubc6TI4=";
"15.0.0" = "sha256-q8x3bia1QaKpzrWFxUmLWIraKqby7TuPNGvbSjkY4eM=";
}
."${version}";
."${finalAttrs.version}";
};
nativeBuildInputs = [
@@ -60,10 +55,10 @@ stdenv.mkDerivation rec {
meta = {
description = "OCaml library for segmenting Unicode text";
homepage = webpage;
homepage = "https://erratique.ch/software/uuseg";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.vbgl ];
mainProgram = "usegtrip";
inherit (ocaml.meta) platforms;
};
}
})