@@ -0,0 +1,23 @@
1+{ stdenv, fetchFromGitHub, cmake }:
2+
3+stdenv.mkDerivation rec {
4+ name = "libuchardet-${version}";
5+
6+ version = "0.0.1";
7+
8+ src = fetchFromGitHub {
9+ owner = "BYVoid";
10+ repo = "uchardet";
11+ rev = "69b7133995e4ee260b093323c57a7f8c6c6803b8";
12+ sha256 = "0yqrc9a7wxsh2fvigjppjp55v4r1q8p40yh048xsvl3kly2rkqy9";
13+ };
14+
15+ buildInputs = [ cmake ];
16+
17+ meta = with stdenv.lib; {
18+ description = "Mozilla's Universal Charset Detector C/C++ API";
19+ homepage = https://www.byvoid.com/zht/project/uchardet;
20+ license = licenses.mpl11;
21+ maintainers = with maintainers; [ cstrahan ];
22+ };
23+}