1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-17 10:24:15 +00:00
nixpkgs/pkgs/development/libraries/utf8proc/default.nix

34 lines
949 B
Nix
Raw Normal View History

2020-08-19 21:12:32 +01:00
{ stdenv, fetchFromGitHub, cmake }:
2014-12-08 20:53:52 +00:00
stdenv.mkDerivation rec {
pname = "utf8proc";
2020-03-29 10:25:02 +01:00
version = "2.5.0";
2014-12-08 20:53:52 +00:00
src = fetchFromGitHub {
owner = "JuliaStrings";
repo = pname;
rev = "v${version}";
2020-03-29 10:25:02 +01:00
sha256 = "1xlkazhdnja4lksn5c9nf4bln5gjqa35a8gwlam5r0728w0h83qq";
2014-12-08 20:53:52 +00:00
};
2020-08-19 21:12:32 +01:00
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
];
2014-12-08 20:53:52 +00:00
# the pkg-config file is not created in the cmake installation
# process, so we use the Makefile and install it manually
# see https://github.com/JuliaStrings/utf8proc/issues/198
preConfigure = "make libutf8proc.pc prefix=$out";
postInstall = "install -Dm644 ../libutf8proc.pc -t $out/lib/pkgconfig/";
2015-05-29 20:48:46 +01:00
meta = with stdenv.lib; {
description = "A clean C library for processing UTF-8 Unicode data";
homepage = "https://juliastrings.github.io/utf8proc/";
2015-05-29 20:48:46 +01:00
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.ftrvxmtrx ];
2014-12-08 20:53:52 +00:00
};
}