1 { lib, stdenv, fetchFromGitHub, cmake, boost } :
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-T7ZUVVYGdzAialse//MoqWCVNBpbZvzWMAKc0cw7O9k=";
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ boost ];
17 # https://github.com/f4exb/cm256cc/issues/16
19 substituteInPlace libcm256cc.pc.in \
20 --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
24 description = "Fast GF(256) Cauchy MDS Block Erasure Codec in C++";
25 homepage = "https://github.com/f4exb/cm256cc";
26 platforms = platforms.linux;
27 maintainers = with maintainers; [ alkeryn ];
28 license = licenses.gpl3;