@@ -0,0 +1,39 @@
1+{ stdenv
2+, fetchFromBitbucket
3+, autoreconfHook
4+, m4ri
5+}:
6+
7+stdenv.mkDerivation rec {
8+ version = "20150908";
9+ name = "m4rie-${version}";
10+
11+ src = fetchFromBitbucket {
12+ owner = "malb";
13+ repo = "m4rie";
14+ rev = "release-${version}";
15+ sha256 = "0r8lv46qx5mkz5kp3ay2jnsp0mbhlqr5z2z220wdk73wdshcznss";
16+ };
17+
18+ doCheck = true;
19+
20+ buildInputs = [
21+ m4ri
22+ ];
23+
24+ nativeBuildInputs = [
25+ autoreconfHook
26+ ];
27+
28+ meta = with stdenv.lib; {
29+ homepage = https://malb.bitbucket.io/m4rie/;
30+ description = "Library for matrix multiplication, reduction and inversion over GF(2^k) for 2 <= k <= 10";
31+ longDescription = ''
32+ M4RIE is a library for fast arithmetic with dense matrices over small finite fields of even characteristic.
33+ It uses the M4RI library, implementing the same operations over the finite field F2.
34+ '';
35+ license = licenses.gpl2Plus;
36+ maintainers = with maintainers; [ timokau ];
37+ platforms = platforms.linux;
38+ };
39+}