mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-28 15:54:32 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
856 B
Nix
33 lines
856 B
Nix
{ lib, stdenv, fetchurl, installShellFiles, pkg-config, libdatrie }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libthai";
|
|
version = "0.1.29";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/tlwg/libthai/releases/download/v${version}/libthai-${version}.tar.xz";
|
|
sha256 = "sha256-/IDMfctQ4RMCtBfOvSTy0wqLmHKS534AMme5EA0PS80=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ installShellFiles (lib.getBin libdatrie) pkg-config ];
|
|
|
|
buildInputs = [ libdatrie ];
|
|
|
|
postInstall = ''
|
|
installManPage man/man3/*.3
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://linux.thai.net/projects/libthai/";
|
|
description = "Set of Thai language support routines";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ crertel ];
|
|
pkgConfigModules = [ "libthai" ];
|
|
};
|
|
}
|