diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libuchardet')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libuchardet/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libuchardet/default.nix b/nixpkgs/pkgs/development/libraries/libuchardet/default.nix new file mode 100644 index 000000000000..5aa26a749e4f --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libuchardet/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchurl, cmake }: + +stdenv.mkDerivation rec { + pname = "uchardet"; + version = "0.0.6"; + + outputs = [ "bin" "out" "man" "dev" ]; + + src = fetchurl { + url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.xz"; + sha256 = "0q9c02b6nmw41yfsiqsnphgc3f0yg3fj31wkccp47cmwvy634lc3"; + }; + + buildInputs = [ cmake ]; + + 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.freedesktop.org/wiki/Software/uchardet/; + license = licenses.mpl11; + maintainers = with maintainers; [ cstrahan ]; + platforms = with platforms; unix; + }; +} |