nixpkgs/pkgs/development/libraries/libuchardet/default.nix

30 lines
745 B
Nix
Raw Normal View History

2018-12-25 17:57:21 +00:00
{ stdenv, fetchurl, cmake }:
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";
2018-12-25 17:57:21 +00:00
outputs = [ "bin" "out" "man" "dev" ];
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";
};
nativeBuildInputs = [ cmake ];
2018-12-25 17:57:21 +00:00
cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
];
doCheck = true;
meta = with stdenv.lib; {
description = "Mozilla's Universal Charset Detector C/C++ API";
homepage = "https://www.freedesktop.org/wiki/Software/uchardet/";
2018-12-25 17:57:21 +00:00
license = licenses.mpl11;
maintainers = with maintainers; [ cstrahan ];
platforms = with platforms; unix;
};
}