git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #52856 from jtojnar/uchardet-fdo

libuchardet: 0.0.5 → 0.0.6

commit0c4887c646338ba36335a7e271165313927d38d9 authorJan Tojnar <jtojnar@gmail.com> dateTue 25 Dec 2018, 20:57 (8 years ago) parent1f6b095e32a9ca
1 file changed+17−11
pkgs/development/libraries/libuchardet/default.nix+17−11
pkgs/development/libraries/libuchardet/default.nix+17−11
@@ -1,25 +1,31 @@
1−{ stdenv, fetchFromGitHub, cmake }:
1+{ stdenv, fetchurl, cmake }:
22
33stdenv.mkDerivation rec {
4− name = "libuchardet-${version}";
4+ pname = "uchardet";
5+ version = "0.0.6";
56
6− version = "0.0.5";
7+ outputs = [ "bin" "out" "man" "dev" ];
78
8− src = fetchFromGitHub {
9− owner = "BYVoid";
10− repo = "uchardet";
11− rev = "v${version}";
12− sha256 = "0rkym5bhq3hn7623fy0fggw0qaghha71k8bi41ywqd2lchpahrrm";
9+ src = fetchurl {
10+ url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.xz";
11+ sha256 = "0q9c02b6nmw41yfsiqsnphgc3f0yg3fj31wkccp47cmwvy634lc3";
1312 };
1413
1514 buildInputs = [ cmake ];
1615
17− doCheck = false; # fails all the tests (ctest)
16+ cmakeFlags = [
17+ "-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
18+ # TODO: move the following to CMake setup hook
19+ "-DCMAKE_INSTALL_BINDIR=${placeholder "bin"}/bin"
20+ "-DCMAKE_INSTALL_MANDIR=${placeholder "man"}/share/man"
21+ ];
22+
23+ doCheck = true;
1824
1925 meta = with stdenv.lib; {
2026 description = "Mozilla's Universal Charset Detector C/C++ API";
21− homepage = https://www.byvoid.com/zht/project/uchardet;
22− license = licenses.mpl11;
27+ homepage = https://www.freedesktop.org/wiki/Software/uchardet/;
28+ license = licenses.mpl11;
2329 maintainers = with maintainers; [ cstrahan ];
2430 platforms = with platforms; unix;
2531 };