@@ -1,22 +1,26 @@
1−{stdenv, fetchurl}:
1+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig }:
22
33stdenv.mkDerivation rec {
44 name = "fribidi-${version}";
55 version = "0.19.7";
66
7− src = fetchurl {
8− url = "http://fribidi.org/download/${name}.tar.bz2";
9− sha256 = "13jsb5qadlhsaxkbrb49nqslmbh904vvzhsm5mm2ghmv29i2l8h8";
7+ src = fetchFromGitHub {
8+ owner = "fribidi";
9+ repo = "fribidi";
10+ rev = version;
11+ sha256 = "10q5jfch5qzrj2w4fbkr086ank66plx8hp7ra9a01irj80pbk96d";
1012 };
1113
12− hardeningDisable = [ "format" ];
14+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
15+
16+ # Configure script checks for glib, but it is only used for tests.
1317
1418 outputs = [ "out" "devdoc" ];
1519
1620 meta = with stdenv.lib; {
17− homepage = http://fribidi.org/;
21+ homepage = https://github.com/fribidi/fribidi;
1822 description = "GNU implementation of the Unicode Bidirectional Algorithm (bidi)";
19− license = licenses.gpl2;
23+ license = licenses.lgpl21;
2024 platforms = platforms.unix;
2125 };
2226}