2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, boost } :
|
2019-08-24 20:55:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cm256cc";
|
2021-02-20 19:31:46 +00:00
|
|
|
version = "1.1.0";
|
2019-08-24 20:55:22 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "f4exb";
|
|
|
|
repo = "cm256cc";
|
|
|
|
rev = "v${version}";
|
2021-02-20 19:31:46 +00:00
|
|
|
sha256 = "sha256-T7ZUVVYGdzAialse//MoqWCVNBpbZvzWMAKc0cw7O9k=";
|
2019-08-24 20:55:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ boost ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-08-24 20:55:22 +01:00
|
|
|
description = "Fast GF(256) Cauchy MDS Block Erasure Codec in C++";
|
|
|
|
homepage = "https://github.com/f4exb/cm256cc";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ alkeryn ];
|
2020-06-27 00:17:02 +01:00
|
|
|
license = licenses.gpl3;
|
2019-08-24 20:55:22 +01:00
|
|
|
};
|
|
|
|
}
|