2018-12-25 17:57:21 +00:00
|
|
|
{ stdenv, fetchurl, cmake }:
|
2014-12-22 04:35:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-12-25 17:57:21 +00:00
|
|
|
pname = "uchardet";
|
|
|
|
version = "0.0.6";
|
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";
|
|
|
|
sha256 = "0q9c02b6nmw41yfsiqsnphgc3f0yg3fj31wkccp47cmwvy634lc3";
|
2014-12-22 04:35:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake ];
|
|
|
|
|
2018-12-25 17:57:21 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2018-04-25 03:20:18 +00:00
|
|
|
|
2014-12-22 04:35:31 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mozilla's Universal Charset Detector C/C++ API";
|
2018-12-25 17:57:21 +00:00
|
|
|
homepage = https://www.freedesktop.org/wiki/Software/uchardet/;
|
|
|
|
license = licenses.mpl11;
|
2014-12-22 04:35:31 +00:00
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with platforms; unix;
|
2014-12-22 04:35:31 +00:00
|
|
|
};
|
|
|
|
}
|