nixpkgs/pkgs/development/libraries/libexttextcat/default.nix
Malo Bourgon 9e4be53221 treewide: add meta.mainProgram to some libraries
where a single bin is provided and someone might actually want to run it
2022-05-04 18:11:50 -07:00

20 lines
578 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "libexttextcat";
version = "3.4.6";
src = fetchurl {
url = "https://dev-www.libreoffice.org/src/libexttextcat/${pname}-${version}.tar.xz";
sha256 = "sha256-bXfqziDp6hBsEzDiaO3nDJpKiXRN3CVxVoJ1TsozaN8=";
};
meta = with lib; {
description = "An N-Gram-Based Text Categorization library primarily intended for language guessing";
homepage = "https://wiki.documentfoundation.org/Libexttextcat";
license = licenses.bsd3;
mainProgram = "createfp";
platforms = platforms.all;
};
}