depot/third_party/nixpkgs/pkgs/development/libraries/crcpp/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

30 lines
622 B
Nix

{ stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "crcpp";
version = "1.0.1.0";
src = fetchFromGitHub {
owner = "d-bahr";
repo = "CRCpp";
rev = "release-${version}";
sha256 = "138w97kfxnv8rcnvggba6fcxgbgq8amikkmy3jhqfn6xzy6zaimh";
};
dontBuild = true;
installPhase = ''
mkdir -p $out/include
cp inc/CRC.h $out/include
'';
meta = with stdenv.lib; {
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;
};
}