2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-09-25 04:45:31 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "crcpp";
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "1.1.0.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "d-bahr";
|
|
|
|
repo = "CRCpp";
|
|
|
|
rev = "release-${version}";
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "sha256-jBvh4dHSFChxNPVgkGVHy3TXSExsfwdVUfsA8XB1cn8=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include
|
|
|
|
cp inc/CRC.h $out/include
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/d-bahr/CRCpp";
|
|
|
|
description = "Easy to use and fast C++ CRC library";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.ivar ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|