libuchardet: 0.0.5 → 0.0.6

This commit is contained in:
Jan Tojnar 2018-12-25 18:57:21 +01:00
parent 3b19fa9745
commit e32a9ca6ff
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,25 +1,31 @@
{ stdenv, fetchFromGitHub, cmake }:
{ stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
name = "libuchardet-${version}";
pname = "uchardet";
version = "0.0.6";
version = "0.0.5";
outputs = [ "bin" "out" "man" "dev" ];
src = fetchFromGitHub {
owner = "BYVoid";
repo = "uchardet";
rev = "v${version}";
sha256 = "0rkym5bhq3hn7623fy0fggw0qaghha71k8bi41ywqd2lchpahrrm";
src = fetchurl {
url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.xz";
sha256 = "0q9c02b6nmw41yfsiqsnphgc3f0yg3fj31wkccp47cmwvy634lc3";
};
buildInputs = [ cmake ];
doCheck = false; # fails all the tests (ctest)
cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
# TODO: move the following to CMake setup hook
"-DCMAKE_INSTALL_BINDIR=${placeholder "bin"}/bin"
"-DCMAKE_INSTALL_MANDIR=${placeholder "man"}/share/man"
];
doCheck = true;
meta = with stdenv.lib; {
description = "Mozilla's Universal Charset Detector C/C++ API";
homepage = https://www.byvoid.com/zht/project/uchardet;
license = licenses.mpl11;
homepage = https://www.freedesktop.org/wiki/Software/uchardet/;
license = licenses.mpl11;
maintainers = with maintainers; [ cstrahan ];
platforms = with platforms; unix;
};