btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / cr / crcpp / package.nix
blob6162d8935be3826dae1185ff08fa2d62f4751c34
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 }:
7 stdenv.mkDerivation rec {
8   pname = "crcpp";
9   version = "1.2.0.0";
11   src = fetchFromGitHub {
12     owner = "d-bahr";
13     repo = "CRCpp";
14     rev = "release-${version}";
15     sha256 = "sha256-OY8MF8fwr6k+ZSA/p1U+9GnTFoMSnUZxKVez+mda2tA=";
16   };
18   nativeBuildInputs = [ cmake ];
20   doCheck = true;
22   meta = with lib; {
23     homepage = "https://github.com/d-bahr/CRCpp";
24     changelog = "https://github.com/d-bahr/CRCpp/releases/tag/release-${version}";
25     description = "Easy to use and fast C++ CRC library";
26     platforms = platforms.all;
27     maintainers = [ ];
28     license = licenses.bsd3;
29   };