2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake }:
|
2014-12-22 04:35:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-12-25 17:57:21 +00:00
|
|
|
pname = "uchardet";
|
2020-05-10 19:52:27 +01:00
|
|
|
version = "0.0.7";
|
2014-12-22 04:35:31 +00:00
|
|
|
|
2018-12-25 17:57:21 +00:00
|
|
|
outputs = [ "bin" "out" "man" "dev" ];
|
2014-12-22 04:35:31 +00:00
|
|
|
|
2018-12-25 17:57:21 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.xz";
|
2020-05-10 19:52:27 +01:00
|
|
|
sha256 = "1ca51sryhryqz82v4d0graaiqqq5w2f33a9gj83b910xmq499irz";
|
2014-12-22 04:35:31 +00:00
|
|
|
};
|
|
|
|
|
2020-02-08 06:45:46 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2014-12-22 04:35:31 +00:00
|
|
|
|
2018-12-25 17:57:21 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
|
|
|
|
];
|
|
|
|
|
2021-02-07 12:32:57 +00:00
|
|
|
doCheck = !stdenv.isi686; # tests fail on i686
|
2018-04-25 04:20:18 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-12-22 04:35:31 +00:00
|
|
|
description = "Mozilla's Universal Charset Detector C/C++ API";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.freedesktop.org/wiki/Software/uchardet/";
|
2018-12-25 17:57:21 +00:00
|
|
|
license = licenses.mpl11;
|
2014-12-22 04:35:31 +00:00
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2014-12-22 04:35:31 +00:00
|
|
|
};
|
|
|
|
}
|